-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
84 lines (79 loc) · 2.51 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
73
74
75
76
77
78
79
80
81
82
83
84
version: "2"
services:
redis:
image: redis:latest
postgres2:
# restart: always
image: postgres:9.6
ports:
- "5432:5432"
##if we do not want to lose data when the database container is gone
# volumes:
# - db_linking:/var/lib/postgresql/data
# env_file: env
# exposing host post 5432 (LHS) to postgres container called "postgres2"'s
# port 5432 (RHS)
celeryworker:
image: novavic/ligo_celeryworker:3.3.2
#env_file: ./worker/.env
#FILE_LOC should be /user_data/media/datasets/
environment:
- IN_DOCKER=1
- C_FORCE_ROOT=true
- CELERY_BROKER_URL=redis://redis:6379/0
- LIB_VERSION:3.3.2
- FILE_LOC:/user_data/media/datasets/
depends_on:
- redis
volumes:
- ./files/:/user_data
# - web
# #comment out or one or the other depending on what we want to list
# #debug level message or info level message
# #ldeally info > debug
# #if we want to capture a msg at level y and any level higher than that
# #then we have to set the level
# #to the lower one (y) after the -l flag
# #command: celery -A linkage.taskapp worker -l INFO
# command: celery -A linkage.taskapp worker -l DEBUG
# command: celery -A linkage.taskapp worker -l DEBUG
#not so technical user (pulling image instead of building) focused docker compose file
web:
#restart: always
image: novavic/ligo_web:2.1.3
ports:
- "8002:8000"
#env_file: ./web-app/config/settings/.env
environment:
- IN_DOCKER=1
- C_FORCE_ROOT=true
- CELERY_BROKER_URL=redis://redis:6379/0
- LINK_DB_NAME=postgres
- LINK_DB_USER=postgres
- LINK_DB_HOST=postgres2
- LINK_DB_PORT=5432
- LINK_DB_SERVICE=postgres
- LINK_DB_PASSWORD=
- LOGGING_LEVEL=DEBUG
- STATIC_URL=/static/
- APP_ROOT_URL=
- LINKING_LIB_REPO=https://github.com/bcgov/ligo-lib
- LINKING_APP_REPO=https://github.com/bcgov/ligo
- APP_VERSION:2.1.3
- FILE_LOC:/user_data/media/datasets/
depends_on:
- postgres2
#environment:
# IN_DOCKER: 1
#user: django
#use of this volume mount depends on how do we want to manage uploading/copying files
#to be de-duplicated and linked
#if we use it then we have to uncomment the "files" line in the bottom most volumes specific#in this file
#need to check that it is not buggy
volumes:
- ./files/:/user_data
command:
/bin/bash start-dev.sh
volumes:
files:
# db_linking: