-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose-monolith.yml
49 lines (45 loc) · 1.04 KB
/
docker-compose-monolith.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
version: "3.8"
x-environment: &default-environment
GET_HOSTS_FROM: dns
ENVIRONMENT: development
LOG_LEVEL: TRACE
EVENT_DRIVER: inmem
services:
postgres:
container_name: postgres
hostname: postgres
image: postgres:alpine
restart: always
environment:
GET_HOST_FROM: dns
POSTGRES_PASSWORD: itsasecret
networks:
- mononet
ports:
- '5432:5432'
volumes:
- 'pgdata:/var/lib/postgresql/data'
- './config/postgresql/init-postgres.sql:/docker-entrypoint-initdb.d/init-postgres.sql'
monolith-service:
hostname: monolith
restart: on-failure
build:
context: .
args:
service: monolith
environment:
<<: *default-environment
SERVICE_ID: monolith-service
PG_CONN: host=postgres dbname=ftgogo user=ftgogo_user password=ftgogo_pass pool_max_conns=10
RPC_SERVER_NETWORK: unix
RPC_SERVER_ADDRESS: /tmp/grpc.sock
networks:
- mononet
ports:
- '8000:80'
networks:
mononet:
volumes:
consuldata:
pgdata:
standata: