-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-gh.yml
116 lines (107 loc) · 2.31 KB
/
docker-compose-gh.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: '3.3'
services:
mysql:
container_name: mysql
image: mysql
restart: always
environment:
MYSQL_USER: 'matcha'
MYSQL_PASSWORD: 'matcha'
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: pymatcha
env_file:
- .env.docker
volumes:
- ./mysql_dump:/docker-entrypoint-initdb.d
networks:
- mysql-net
healthcheck:
test: "/usr/bin/mysql --user=$DB_USER --password=$DB_PASSWORD --execute \"SHOW DATABASES;\""
interval: 3s
timeout: 1s
retries: 5
redis:
container_name: redis
image: redis:4.0.5-alpine
hostname: redis
ports:
- '6379:6379'
networks:
- redis-net
volumes:
- redis-data:/data
workers:
container_name: workers
image: docker.pkg.github.com/seluj78/pymatcha/pymatcha-workers:6ab4b5f1358d92d873ae5db94bc106a423fb94e6
env_file:
- .env.docker
volumes:
- backend:/backend
depends_on:
- redis
- mysql
links:
- redis
networks:
- redis-net
- mysql-net
restart: always
backend:
container_name: backend
image: docker.pkg.github.com/seluj78/pymatcha/pymatcha-backend:12d945a2cf7b7429febb29d37ff31b657f533626
restart: always
env_file:
- .env.docker
ports:
- "8080:5000"
volumes:
- backend:/backend
depends_on:
- mysql
- redis
- workers
links:
- mysql
- redis
- workers
networks:
- redis-net
- mysql-net
- backend-net
frontend:
container_name: frontend
image: docker.pkg.github.com/seluj78/pymatcha/pymatcha-frontend:6ab4b5f1358d92d873ae5db94bc106a423fb94e6
ports:
- '4242:5000'
networks:
- backend-net
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: dev_pma
links:
- mysql
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
ports:
- 8183:80
networks:
- mysql-net
swagger_ui:
container_name: docs
environment:
- API_URL=/swagger.yaml
image: "swaggerapi/swagger-ui"
volumes: ["./backend/schemas/swagger.yaml:/usr/share/nginx/html/swagger.yaml"]
restart: always
ports: ["9000:8080"]
networks:
redis-net:
mysql-net:
backend-net:
volumes:
redis-data:
mysql:
backend: