add prod conf
This commit is contained in:
parent
fb1c2b9bd8
commit
9abf1105cc
|
|
@ -8,33 +8,19 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ../nginx/nginx_config_dev.conf:/etc/nginx/conf.d/default.conf
|
- ../nginx/nginx_config_dev.conf:/etc/nginx/conf.d/default.conf
|
||||||
- ../../app:/var/www/html
|
- ../../app:/var/www/html
|
||||||
- ../../layouts:/var/www/layouts
|
|
||||||
- ../scripts/nginx:/home/scripts
|
- ../scripts/nginx:/home/scripts
|
||||||
- ../../letsencrypt:/etc/letsencrypt
|
- ../../letsencrypt:/etc/letsencrypt
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
|
||||||
- 8090:8090
|
|
||||||
- 443:443
|
- 443:443
|
||||||
|
working_dir: /var/www/html
|
||||||
php:
|
php:
|
||||||
build:
|
build:
|
||||||
context: ../../dockerfiles/php
|
context: ../../dockerfiles/php
|
||||||
dockerfile: Dockerfile_ubuntu
|
dockerfile: Dockerfile_ubuntu_prod
|
||||||
volumes:
|
volumes:
|
||||||
- ../../app:/var/www/html
|
- ../../app:/var/www/html
|
||||||
- ../scripts/php:/home/scripts
|
- ../scripts/php:/home/scripts
|
||||||
ports:
|
|
||||||
- 9002:9002
|
|
||||||
command: sh /home/scripts/start.sh
|
command: sh /home/scripts/start.sh
|
||||||
workspace:
|
|
||||||
build:
|
|
||||||
context: ../../dockerfiles/php
|
|
||||||
dockerfile: Dockerfile_ubuntu
|
|
||||||
user: "${UID}"
|
|
||||||
volumes:
|
|
||||||
- ../../app:/var/www/html
|
|
||||||
- ../../shortcats:/var/www
|
|
||||||
- ../scripts/php:/home/scripts
|
|
||||||
command: sh /home/scripts/workspace.sh
|
|
||||||
db:
|
db:
|
||||||
build:
|
build:
|
||||||
context: ../../dockerfiles/mysql
|
context: ../../dockerfiles/mysql
|
||||||
|
|
@ -45,23 +31,15 @@ services:
|
||||||
- ../scripts/mysql:/home/scripts
|
- ../scripts/mysql:/home/scripts
|
||||||
ports:
|
ports:
|
||||||
- 3306:3306
|
- 3306:3306
|
||||||
|
restart: unless-stopped
|
||||||
|
working_dir: /home
|
||||||
command: sh /home/scripts/start.sh
|
command: sh /home/scripts/start.sh
|
||||||
mailcatcher:
|
|
||||||
# restart: on-failure
|
|
||||||
image: dockage/mailcatcher:0.9.0
|
|
||||||
ports:
|
|
||||||
- "1080:1080"
|
|
||||||
- "1025:1025"
|
|
||||||
adminer:
|
adminer:
|
||||||
image: adminer
|
image: adminer
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
nodejs:
|
networks:
|
||||||
build:
|
default:
|
||||||
context: ../../dockerfiles/nodejs
|
external:
|
||||||
dockerfile: Dockerfile
|
name: dockernet
|
||||||
volumes:
|
|
||||||
- ../scripts/nodejs:/home/scripts
|
|
||||||
- ../../app:/home/app
|
|
||||||
command: sh /home/scripts/start.sh
|
|
||||||
Loading…
Reference in New Issue