forked from CenterForOpenScience/gravyvalet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (64 loc) · 1.68 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
69
70
71
72
version: "3.8"
services:
gravyvalet:
build:
context: .
target: gv-dev
restart: unless-stopped
command: python manage.py runserver 0.0.0.0:8004
environment: &gv_environment
DEBUG: 1
DJANGO_SETTINGS_MODULE: app.settings
PYTHONUNBUFFERED: 1
POSTGRES_HOST: postgres
POSTGRES_DB: gravyvalet
POSTGRES_USER: postgres
# OSFDB_HOST: 192.168.168.167
ALLOWED_HOSTS: 0.0.0.0,localhost,192.168.168.167
CORS_ALLOWED_ORIGINS: http://localhost:5000,http://192.168.168.167:5000
SECRET_KEY: so-secret
OSF_BASE_URL: "http://192.168.168.167:5000"
OSF_API_BASE_URL: "http://192.168.168.167:8000"
OSF_AUTH_COOKIE_NAME: osf
AMQP_BROKER_URL: "amqp://guest:guest@rabbitmq:5672"
GRAVYVALET_ENCRYPT_SECRET: "this is fine"
ports:
- 8004:8004
stdin_open: true
volumes:
- ./:/code:cached
depends_on:
- celeryworker
- postgres
celeryworker:
build:
context: .
target: gv-local
restart: unless-stopped
command: /usr/local/bin/celery --app app worker --uid daemon -l INFO
depends_on:
- rabbitmq
- postgres
volumes:
- ./:/code:cached
environment: *gv_environment
stdin_open: true
postgres:
image: postgres:latest
volumes:
- "${POSTGRES_DATA_VOL:-postgres_data_vol}:/var/lib/postgresql/data/"
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: gravyvalet
rabbitmq:
image: rabbitmq:management
ports:
- 15674:15672
volumes:
- rabbitmq_vol:/var/lib/rabbitmq
stdin_open: true
volumes:
postgres_data_vol:
external: false
rabbitmq_vol:
external: false