This repository has been archived by the owner on Feb 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
70 lines (62 loc) · 1.47 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
version: '3.8'
services:
db:
image: postgres:14-bullseye
restart: on-failure
environment:
POSTGRES_DB: antipoaching
POSTGRES_USER_FILE: /run/secrets/pg_user
POSTGRES_PASSWORD_FILE: /run/secrets/pg_password
volumes:
- pgdata:/var/lib/postgresql/data
secrets:
- pg_password
- pg_user
db-test:
image: postgres:14-bullseye
restart: on-failure
environment:
POSTGRES_DB: pytest
POSTGRES_USER_FILE: /run/secrets/pg_user
POSTGRES_PASSWORD_FILE: /run/secrets/pg_password
secrets:
- pg_password
- pg_user
nlp:
image: pig208/anti-poaching-corenlp:cn
analytics-cli:
image: pig208/anti-poaching-analytics-dev:${REVISION:-latest}
build:
context: analytics-cli
args:
REQUIREMENTS_TXT: requirements/dev.txt
volumes:
- ./analytics-cli/analytics:/opt/app/analytics
api:
image: pig208/anti-poaching-api-dev:${REVISION:-latest}
build:
context: api
args:
REQUIREMENTS_TXT: requirements/dev.txt
ports:
- 8000:8000
environment:
PG_HOST: db
PG_DBNAME: antipoaching
PG_TESTHOST: db-test
PG_TESTDBNAME: pytest
ENVIRONMENT: development
secrets:
- pg_password
- pg_user
web:
image: pig208/anti-poaching-web-dev:${REVISION:-latest}
ports:
- 3000:3000
volumes:
pgdata:
secrets:
pg_password:
file: secrets/dev/pg_password
pg_user:
file: secrets/dev/pg_user