-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
44 lines (43 loc) · 1007 Bytes
/
docker-compose.yaml
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:
postgres:
restart: always
image: postgres:latest
container_name: postgres_docker_instance
volumes:
- ${HOST_DIR}:/var/lib/postgresql/data
expose:
- 5432
ports:
- ${POSTGRES_PORT}:5432
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
logging:
driver: "json-file"
options:
max-size: "1k"
max-file: "3"
networks:
- backend
# eth_services_image:
# build: .
# container_name: eth_services
# environment:
# - PORT=${PORT}
# - POSTGRES_DB=${POSTGRES_DB}
# - POSTGRES_USER=${POSTGRES_USER}
# - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
# - POSTGRES_PORT=${POSTGRES_PORT}
# ports:
# - "${PORT}:${PORT}"
# logging:
# driver: "json-file"
# options:
# max-size: "1k"
# max-file: "3"
# networks:
# - backend
networks:
backend: