-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
86 lines (85 loc) · 2.07 KB
/
docker-compose-dev.yml
File metadata and controls
86 lines (85 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3'
services:
web:
container_name: '${APP_NAME}_web'
build:
context: ./Webserver/docker/web/nginx
dockerfile: Dockerfile
volumes:
- './Backend/:/var/www/app'
- './Webserver/docker/web/nginx/default.conf:/etc/nginx/conf.d/default.conf'
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;"'''
links:
- php
ports:
- '80:80'
- '443:443'
networks:
- proxy
front:
container_name: '${APP_NAME}_front'
build:
context: ./Webserver/docker/nuxt
hostname: client
volumes:
- './Frontend:/var/www/app'
networks:
- proxy
ports:
- '3000:3000'
tty: true
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; npm install ; npm run dev; done & npm install ; npm run dev'''
panel:
container_name: '${APP_NAME}_panel'
build:
context: ./Webserver/docker/panel
hostname: client
volumes:
- './Panel:/var/www/app'
networks:
- proxy
ports:
- '3001:3000'
tty: true
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; npm install ;npm run dev; done & npm install ;npm run dev'''
php:
container_name: '${APP_NAME}_php'
build:
context: ./Webserver/docker/php
dockerfile: Dockerfile
links:
- db
volumes:
- './Backend/:/var/www/app'
networks:
- proxy
db:
container_name: '${APP_NAME}_db'
image: mysql
command: '--default-authentication-plugin=mysql_native_password'
restart: always
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
volumes:
- './Webserver/docker/mysql/data:/var/lib/mysql'
networks:
- proxy
cap_add:
- SYS_NICE
myadmin:
container_name: '${APP_NAME}_myadmin'
image: phpmyadmin
ports:
- '81:80'
environment:
UPLOAD_LIMIT: 300M
depends_on:
- db
networks:
- proxy
networks:
proxy:
driver: bridge