-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
36 lines (36 loc) · 829 Bytes
/
docker-compose.yaml
File metadata and controls
36 lines (36 loc) · 829 Bytes
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
networks:
main:
services:
paste:
build: .
restart: always
container_name: ${PASTE_CONTAINER_NAME}
environment:
POSTGRES_HOST: ${POSTGRES_HOST}
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
SIGN_KEY: ${SIGN_KEY}
ports:
- ${PASTE_PORTS}
depends_on:
- PostgresDB
networks:
- main
PostgresDB:
image: postgres
restart: always
container_name: ${POSTGRES_CONTAINER_NAME}
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- ${POSTGRES_PORTS}
volumes:
- PostgresDB:/var/lib/postgresql/data
networks:
- main
volumes:
PostgresDB: