-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcompose.yml
More file actions
31 lines (29 loc) · 649 Bytes
/
compose.yml
File metadata and controls
31 lines (29 loc) · 649 Bytes
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
name: stationapi
services:
api:
build:
context: .
dockerfile: ./docker/api/Dockerfile
depends_on:
- psql
volumes:
- .:/app
environment:
DATABASE_URL: postgresql://stationapi:stationapi@psql/stationapi
DISABLE_GRPC_WEB: false
DISABLE_BUS_FEATURE: false
HOST: 0.0.0.0
ports:
- 50051:50051
restart: always
psql:
image: postgres:18
environment:
POSTGRES_USER: stationapi
POSTGRES_PASSWORD: stationapi
POSTGRES_DB: stationapi
restart: always
ports:
- 5432:5432
volumes:
- ./docker/postgres:/docker-entrypoint-initdb.d:ro