-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 1 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
version: '3'
services:
broker-service:
build:
context: ./broker-service
dockerfile: ./broker-service.dockerfile
restart: always
ports:
- "8080:80"
deploy:
mode: replicated
replicas: 1
authentication-service:
build:
context: ./authentication-service
dockerfile: ./authentication-service.dockerfile
restart: always
ports:
- "7000:80"
deploy:
mode: replicated
replicas: 1
environment:
DSN: "host=postgres port=5432 user=postgres password=password dbname=users sslmode=disable timezone=UTC connect_timeout=5"
postgres:
image: 'postgres:14.2'
restart: always
deploy:
mode: replicated
replicas: 1
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: users
volumes:
- "./project/db-data/postgres/:/var/lib/postgresql/data/"
- "./healthchecks:/healthchecks"
healthcheck:
test: /healthchecks/postgres.sh
interval: "5s"