-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
80 lines (74 loc) · 1.7 KB
/
compose.yml
File metadata and controls
80 lines (74 loc) · 1.7 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
services:
app:
container_name: skeleton-app
build:
context: .
dockerfile: ./devops/dev/php/Dockerfile
restart: unless-stopped
volumes:
- ./:/var/www/html:${CHACHED_VOLUMES:-cached}
networks:
- skeleton-network
depends_on:
mysql:
condition: service_healthy
worker:
container_name: skeleton-worker
build:
context: .
dockerfile: ./devops/dev/php/Dockerfile
restart: unless-stopped
volumes:
- ./:/var/www/html:${CHACHED_VOLUMES:-cached}
networks:
- skeleton-network
depends_on:
mysql:
condition: service_healthy
command: bin/start-workers
nginx:
container_name: skeleton-webserver
image: nginx:alpine
restart: unless-stopped
ports:
- '8080:80'
volumes:
- ./:/var/www/html:${CHACHED_VOLUMES:-cached}
- ./devops/dev/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- app
networks:
- skeleton-network
extra_hosts:
- 'skeleton.test:host-gateway'
mysql:
container_name: skeleton-database
image: mysql:8.0
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: skeleton
MYSQL_PASSWORD: skeleton
MYSQL_USER: skeleton
volumes:
- mysql-data:/var/lib/mysql
ports:
- "3310:3306"
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
interval: 5s
timeout: 5s
retries: 3
networks:
- skeleton-network
redis:
container_name: skeleton-redis
image: redis:alpine
networks:
- skeleton-network
networks:
skeleton-network:
driver: bridge
volumes:
mysql-data:
driver: local