forked from WikipediaLibrary/hashtags
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (51 loc) · 897 Bytes
/
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
version: "2.1"
services:
app:
build: .
networks:
- main
env_file:
- '.env'
depends_on:
db:
condition: service_healthy
ports:
- "8000:8000"
volumes:
- ./:/app
db:
image: mysql:5.7
env_file:
- '.env'
ports:
- "3306:3306"
networks:
- main
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost","-phashtag"]
timeout: 20s
retries: 10
nginx:
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./static:/app/static
ports:
- "80:80"
networks:
- main
depends_on:
- app
scripts:
build:
context: .
dockerfile: 'Dockerfile-scripts'
networks:
- main
env_file:
- '.env'
depends_on:
- db
networks:
main: