forked from WikipediaLibrary/hashtags
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (48 loc) · 889 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (48 loc) · 889 Bytes
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
version: "2.1"
services:
app:
build: .
networks:
- main
depends_on:
db:
condition: service_healthy
ports:
- "8000:8000"
volumes:
- ./:/app
db:
image: mysql:5.7
environment:
MYSQL_DATABASE: hashtagsv2_db
MYSQL_ROOT_PASSWORD: hashtag
ports:
- "3306:3306"
networks:
- main
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
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
depends_on:
- db
networks:
main: