-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
91 lines (83 loc) · 2.08 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: '3.8'
services:
composer_api:
build:
context: .
dockerfile: Dockerfile
ports:
- "5002:5000"
environment:
- APP_NAME=Composer
- DATABASE_URL=postgresql://composer:lol123@db/composer
depends_on:
- composer_db
image: registry.deti/cellwatch/composer-api:v10
composer_db:
image: postgres:13-alpine
environment:
POSTGRES_DB: composer # Name of the database
POSTGRES_USER: composer # Username for the database
POSTGRES_PASSWORD: lol123 # Password for the database user
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5433:5432"
notification_service:
ports:
- "8002:8000"
environment:
- APP_NAME=Notification_Service
image: registry.deti/cellwatch/notification-service:v2
auth_api:
ports:
- "5003:5000"
environment:
- APP_NAME=Auth
- DATABASE_URI=postgresql://admin:admin@auth_db:5432/cellwatch
depends_on:
- auth_db
image: registry.deti/cellwatch/auth_app:v2
networks:
- backend
auth_db:
ports:
- "8001:5432"
# em vez de build usa a imagem do dockerhub
image: postgres:13-alpine
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DB: cellwatch
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- backend
calendar_api:
build:
context: .
dockerfile: Dockerfile
ports:
- "5004:5000"
environment:
- APP_NAME=Calendar
- DATABASE_URL=postgresql://calendar_db:lol123@db/calendar
depends_on:
- calendar_db
image: registry.deti/egs-cellwatch/calendar:v1
calendar_db:
image: postgres:13-alpine
environment:
POSTGRES_DB_C: calendar # Name of the database
POSTGRES_USER_C: calendar # Username for the database
POSTGRES_PASSWORD_C: lol123 # Password for the database user
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5434:5434"
networks:
- networkName
networks:
backend:
driver: bridge
volumes:
postgres_data: