-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (45 loc) · 967 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
version: '3.7'
services:
cdb:
container_name: cdb
restart: always
image: postgres:12
environment:
- POSTGRES_USER=${USER}
- POSTGRES_PASSWORD=${PASSWORD}
- POSTGRES_DB=${CDB}
volumes:
- crs-data:/var/lib/postgressql/data
ports:
- "5438:5438"
networks:
- crs_network
crs-image:
image: nakopa/crs-image:0.1
container_name: crs-image
build: ./crs
environment:
- FLASK_ENV=docker
- SQLALCHEMY_DATABASE_URI=postgresql://${USER}:${PASSWORD}@cdb/crs
ports:
- "5010:5000"
volumes:
- .docker/crs-image:/crs-image
depends_on:
- cdb
networks:
- crs_network
crs-ui-image:
image: nakopa/crs-ui-image:0.1
container_name: crs-ui-image
build: ./crs-ui
ports:
- "3001:3000"
volumes:
- .docker/crs-ui-image:/crs-ui-image
networks:
- crs_network
volumes:
crs-data:
networks:
crs_network: