forked from anhbaysgalan1/tonflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (41 loc) · 919 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
45
46
version: "3.3"
volumes:
pg:
redis:
services:
postgres:
image: postgres:alpine
container_name: postgres
ports:
- "${PG_PORT}:${PG_PORT}"
restart: always
env_file:
- .env.prod
environment:
POSTGRES_DB: "${PG_NAME}"
POSTGRES_USER: "${PG_USER}"
POSTGRES_PASSWORD: "${PG_PASSWORD}"
volumes:
- ./deploy/db/01_init.up.sql:/docker-entrypoint-initdb.d/init.sql
- pg:/var/lib/postgresql/data
redis:
image: redis:alpine
container_name: redis
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
restart: always
env_file:
- .env.prod
volumes:
- redis:/data
tonflow:
image: tonflow
container_name: tonflow
ports:
- "8080:8080"
extra_hosts:
- "host.docker.internal:host-gateway"
restart: on-failure
env_file:
- .env.prod