forked from code4romania/war-taskforce-oncologie-pediatrica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (47 loc) · 894 Bytes
/
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
version: "3.8"
services:
db:
container_name: oncoped-db
build:
context: ./db
env_file:
- .env
ports:
- "5454:5432"
networks:
- internal
volumes:
- pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=${DATABASE_NAME}
redis:
image: redis:alpine
networks:
- internal
container_name: oncoped-redis
expose:
- "6379"
oncoped:
container_name: oncoped-admin
build:
context: ./oncoped
command: dockerize -wait tcp://db:5432 -timeout 90s
env_file:
- .env
networks:
- internal
volumes:
- ./oncoped:/code
ports:
- "8070:8070"
depends_on:
- db
- redis
networks:
internal:
driver: bridge
volumes:
pgdata:
name: oncoped-pgdata