-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (62 loc) · 1.25 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
version: '2.1'
services:
db:
image: mdillon/postgis:9.6-alpine
build:
context: ./_provisioning/db
volumes:
- pgdata:/var/lib/postgresql/data
- ./_provisioning/db/init:/docker-entrypoint-initdb.d
- ./_dumps:/_dumps
environment:
POSTGRES_PASSWORD: $DB_PASSWORD
POSTGRES_USER: $DB_USER
working_dir: /usr/src/app
ports:
- 5432:5432
daemon:
build:
context: ./_provisioning/daemon
command : bash
tty: true
depends_on:
- db
volumes:
- ./_data:/tricoteuses-daemon/data
- ./_dumps:/_dumps
api:
build:
context: ./_provisioning/api
command: bash
volumes:
- ./_data:/tricoteuses-api/data
depends_on:
- db
- daemon
ui:
build:
context: ./_provisioning/ui
command: bash
depends_on:
- db
- api
ports:
- 3000:3000
volumes:
- ./_data/:/data
assemblee:
build:
context: ./_provisioning/an-api
environment:
- ROCKET_ENV=staging
command: cargo run -p tricoteuses_api_assemblee -- -c Config.toml -v
volumes:
- ./_data:/assemblee-data/
depends_on:
- db
ports:
- 8000:8000
volumes:
pgdata:
_dumps:
_data: