-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
52 lines (49 loc) · 1.15 KB
/
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
services:
client:
build:
context: ./client
ports:
- "${CLIENT_PORT}:5173"
volumes:
- ./client:/client
stdin_open: true
tty: true
depends_on:
- api
api:
build:
context: ./api
dockerfile: ./build/package/Dockerfile
ports:
- "${API_PORT}:8080"
environment:
POSTGRES_HOST: db
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_APP_USER: ${POSTGRES_APP_USER}
POSTGRES_APP_PASSWORD: ${POSTGRES_APP_PASSWORD}
DOCKER_HOSTNAME: host.docker.internal
AWS_REGION: ${AWS_REGION}
COGNITO_USER_POOL_ID: ${COGNITO_USER_POOL_ID}
volumes:
- ./api:/api
- /var/run/docker.sock:/var/run/docker.sock
tty: true
depends_on:
- db
db:
image: postgres:17
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
environment:
POSTGRES_USER: ${POSTGRES_ADMIN_USER}
POSTGRES_PASSWORD: ${POSTGRES_ADMIN_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --locale=C"
TZ: "Asia/Tokyo"
volumes:
- db:/var/lib/postgresql/data
volumes:
client:
api:
db: