-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
65 lines (65 loc) · 2.07 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
version: '2.1'
services:
antares-antarest:
image: antarest:latest
container_name : antarest
environment :
- UVICORN_ROOT_PATH=/api
depends_on:
- redis
- postgresql
volumes:
- ./resources/deploy/examples:/workspaces
- ./resources/deploy/tmp:/antarest_tmp_dir
- ./resources/deploy/matrices:/matrixstore
- ./resources/deploy/config.prod.yaml:/resources/application.yaml
- ./resources/deploy/logs:/logs
- ./resources/deploy/gunicorn.py:/conf/gunicorn.py
- ./antares-8.2.2-Ubuntu-20.04/bin:/antares_simulator
antares-antarest-watcher:
image: antarest:latest
container_name: antarest-watcher
volumes:
- ./resources/deploy/examples:/workspaces
- ./resources/deploy/tmp:/antarest_tmp_dir
- ./resources/deploy/matrices:/matrixstore
- ./resources/deploy/config.prod.yaml:/resources/application.yaml
- ./resources/deploy/logs:/logs
depends_on:
- antares-antarest
command: watcher
antares-antarest-matrix-gc:
image: antarest:latest
container_name : antarest-matrix-gc
volumes:
- ./resources/deploy/examples:/workspaces
- ./resources/deploy/tmp:/antarest_tmp_dir
- ./resources/deploy/matrices:/matrixstore
- ./resources/deploy/config.prod.yaml:/resources/application.yaml
- ./resources/deploy/logs:/logs
depends_on:
- antares-antarest
command: matrix_gc
postgresql:
image: postgres:latest
container_name: postgres
environment:
- POSTGRES_PASSWORD=somepass
- PG_DATA=/var/lib/postgresql/data/pgdata
volumes:
- ./resources/deploy/db:/var/lib/postgresql/data
command: [ "postgres", "-c", "log_statement=all", "-c", "log_destination=stderr" ]
redis:
image: redis:latest
container_name : redis
nginx:
image: nginx:latest
container_name: nginx
depends_on:
- antares-antarest
ports:
- 80:80
volumes:
- ./resources/deploy/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./webapp/dist:/www
- ./resources/deploy/web.config.json:/www/config.json:ro