-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 704 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 704 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
version: "3.8"
services:
server:
env_file:
- .env
container_name: server
build:
dockerfile: ./Dockerfile
restart: always
ports:
- ${SERVER_PORT}:${SERVER_PORT}
depends_on:
- db
volumes:
- .:/usr/src/app
db:
container_name: db
image: postgres:latest
restart: always
env_file:
- .env
ports:
- "5432:5432"
volumes:
- data:/data/db
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
volumes:
data: {}