-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (46 loc) · 954 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
47
version: "3"
services:
nginx:
image: nginx:stable
ports:
- "4000:5000"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
container_name: sef-proxy
restart: unless-stopped
networks:
- app-network
depends_on:
- db
- backend
db:
image: postgres:latest
container_name: postgres
restart: always
ports:
- "5432:5432"
networks:
- app-network
environment:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
volumes:
- "./dist/postgresql/data/:/var/lib/postgresql/data"
backend:
image: junboss/sef:0.1.1
build:
context: ./backend
dockerfile: Dockerfile.dev
ports:
- "8080:8080"
volumes:
- './backend:/app'
- '/app/node_modules'
networks:
- app-network
depends_on:
- db
container_name: sef-backend
networks:
app-network:
driver: bridge