-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (42 loc) · 948 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
version: '3'
services:
api:
container_name: gohome-api
image: gohome-api
restart: unless-stopped
build:
context: .
dockerfile: ./cmd/api/Dockerfile
ports:
- 6001:6001
networks:
- homeapp73-docker_default
sync:
container_name: gohome-sync
image: gohome-sync
restart: unless-stopped
build:
context: .
dockerfile: ./cmd/sync/Dockerfile
networks:
- homeapp73-docker_default
db:
container_name: gohome-db
build:
context: ./db
dockerfile: Dockerfile
restart: unless-stopped
env_file:
- .env
environment:
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --locale=fi_FI.UTF-8"
ports:
- "${POSTGRES_PORT}:5432"
volumes:
- ./db/data:/var/lib/postgresql/data
- ./db/init:/docker-entrypoint-initdb.d
networks:
- homeapp73-docker_default
networks:
homeapp73-docker_default:
external: true