-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (49 loc) · 1.11 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
services:
db:
container_name: postgres-tasky
image: postgres:15.3
environment:
POSTGRES_USER: tasky
POSTGRES_PASSWORD: password
POSTGRES_DB: tasky
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- 5432:5432
restart: unless-stopped
networks:
- db
api:
container_name: api-tasky
image: 943819035698.dkr.ecr.eu-west-3.amazonaws.com/tasky-api:latest
ports:
- 8088:8080
networks:
- db
command:
- --spring.datasource.url=jdbc:postgresql://db:5432/tasky
- --server.issuer=http://127.0.0.1:8080
- --server.default-admin-password=password
- --allowed-origins=*
depends_on:
- db
restart: unless-stopped
ui:
container_name: ui-tasky
image: 943819035698.dkr.ecr.eu-west-3.amazonaws.com/tasky-ui:latest
build:
context: ui
args:
api_base_url: http://localhost:8088
ports:
- 3000:5173
depends_on:
- api
restart: unless-stopped
volumes:
postgres:
networks:
db:
driver: bridge