-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
68 lines (62 loc) · 1.44 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
version: '2'
services:
nginx-proxy:
restart: always
image: jwilder/nginx-proxy
ports:
- 80:80
- 443:443
volumes:
- /etc/nginx/vhost.d
- /usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
- /etc/nginx/certs
- ./nginx-proxy/default_location:/etc/nginx/vhost.d/default_location
- django-static:/usr/src/metadataset/www/static
networks:
- nginx-proxy-net
depends_on:
- metadataset
metadataset:
build:
context: .
args:
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
restart: always
volumes:
- db_dump:/usr/src/metadataset/db_dump
- .:/usr/src/metadataset
- django-static:/usr/src/metadataset/www/static
ports:
- 8000:8000
networks:
- nginx-proxy-net
environment:
- VIRTUAL_PORT=8000
- VIRTUAL_HOST=127.0.0.1
depends_on:
- metadataset-db
metadataset-db:
image: mysql:5.7
restart: always
ports:
- 3306:3306
networks:
- nginx-proxy-net
environment:
- MYSQL_DATABASE=$MYSQL_DATABASE
- MYSQL_USER=$MYSQL_USER
- MYSQL_PASSWORD=$MYSQL_PASSWORD
- MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
volumes:
- db_data:/var/lib/mysql
- db_dump:/db_dump
volumes:
db_data:
db_dump:
django-static:
networks:
nginx-proxy-net:
external:
name: nginx-proxy-net