-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·78 lines (72 loc) · 1.65 KB
/
docker-compose.yml
File metadata and controls
executable file
·78 lines (72 loc) · 1.65 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
services:
app:
build:
context: .
dockerfile: docker/php/Dockerfile
restart: always
volumes:
- ./src:/workspace
networks:
- app-network
web:
image: nginx:1.18-alpine
restart: always
ports:
- ${WEB_PORT}:80
volumes:
- ./src:/workspace
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
working_dir:
/workspace
networks:
- app-network
db:
image: mysql:8.0
container_name: alphatiles-db
restart: unless-stopped
tty: true
ports:
- "3308:3306"
environment:
MYSQL_DATABASE: "${DB_DATABASE}"
MYSQL_USER: "${DB_USERNAME}"
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
MYSQL_PASSWORD: "${DB_PASSWORD}"
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- db-store:/var/lib/mysql
networks:
- app-network
dbtest:
image: mysql:8.0
container_name: test-db
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: testing_db
MYSQL_USER: test_user
MYSQL_PASSWORD: test_password
ports:
- "3306:3306"
volumes:
- test-data:/var/lib/mysql
- ./docker/mysql/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- app-network
queue:
build:
context: .
dockerfile: docker/php/Dockerfile
container_name: alphatiles_queue
command: php /workspace/artisan queue:work --sleep=3 --tries=3 --timeout=90
volumes:
- ./src:/workspace
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
db-store:
test-data: