-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
51 lines (48 loc) · 1.1 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
version: "3"
services:
webapi:
build: .
restart: on-failure
env_file:
- ./.env
- ./.env.secret
command: gunicorn -b 0.0.0.0:8000 --env DJANGO_SETTINGS_MODULE=cog.settings.development cog.wsgi --timeout 120 --workers=3 --log-file /tmp/cog.log --log-level debug
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- db
- minio
db:
image: "postgres:10.3-alpine"
restart: always
env_file:
- ./.env.secret
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
minio:
image: minio/minio
restart: on-failure
env_file:
- ./.env.secret
command: minio server /data
ports:
- "9001:9000"
volumes:
- minio-data:/data
marblecutter-virtual:
image: geobeyond/marblecutter-virtual:latest
restart: on-failure
# command: gunicorn -k gevent -b 0.0.0.0 --access-logfile virtual.web:app
command: python server.py
ports:
- "8001:8000"
volumes:
- marblecutter-data:/opt/marblecutter/
volumes:
postgres-data:
minio-data:
marblecutter-data: