-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (75 loc) · 1.83 KB
/
docker-compose.yml
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
version: '3'
services:
app:
image: 'oven/bun:alpine'
container_name: "quizland-app"
working_dir: /var/www
command: sh -c "bun run dev"
ports:
- '9000:9000'
volumes:
- ./app:/var/www
networks:
- app_network
api:
image: 'webdevops/php-nginx-dev:8.2-alpine'
container_name: "quizland-php-nginx"
working_dir: /var/www
ports:
- '80:80'
- '443:443'
volumes:
- ./api:/var/www
- ./docker/nginx.conf:/opt/docker/etc/nginx/vhost.conf
- ./docker/queue-worker.conf:/opt/docker/etc/supervisor.d/queue-worker.conf
- ./docker/startup.sh:/opt/docker/bin/service.d/cron.d/startup.sh
networks:
- app_network
depends_on:
- mysql
mysql:
image: 'mysql/mysql-server:8.0'
ports:
- '${DB_PORT:-3306}:3306'
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_ROOT_HOST: '%'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ALLOW_EMPTY_PASSWORD: 1
volumes:
- 'mysql_storage:/var/lib/mysql'
networks:
- app_network
healthcheck:
test: [ 'CMD', 'mysqladmin', 'ping', '-p${DB_PASSWORD}' ]
retries: 3
timeout: 5s
phpmyadmin:
image: 'phpmyadmin/phpmyadmin'
links:
- mysql:mysql
ports:
- '${PMA_PORT:-8080}:80'
environment:
PMA_HOST: mysql
MYSQL_USERNAME: '${DB_USERNAME}'
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
PMA_USER: '${DB_USERNAME}'
PMA_PASSWORD: '${DB_PASSWORD}'
networks:
- app_network
mailpit:
image: 'axllent/mailpit:latest'
ports:
- '${MAIL_PORT:-1025}:1025'
- '${MAIL_DASHBOARD_PORT:-8025}:8025'
networks:
- app_network
networks:
app_network:
driver: bridge
volumes:
mysql_storage:
driver: local