-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
47 lines (43 loc) · 897 Bytes
/
docker-compose.yaml
File metadata and controls
47 lines (43 loc) · 897 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
37
38
39
40
41
42
43
44
45
46
47
services:
db:
image: postgres:latest
container_name: postgres
restart: always
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
volumes:
- postgres_data:/var/lib/postgresql
backend:
build:
context: ../top-decked-backend
dockerfile: docker/Dockerfile
container_name: topdeck-backend
restart: always
env_file:
- ./.env
depends_on:
- db
frontend:
build:
context: ../top-decked-frontend
dockerfile: docker/Dockerfile
container_name: topdeck-frontend
restart: always
env_file:
- ./.env
depends_on:
- backend
nginx:
build:
context: ./docker/nginx
container_name: topdeck-nginx
restart: always
ports:
- "80:80"
depends_on:
- frontend
- backend
volumes:
postgres_data: