-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (50 loc) · 1015 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
48
49
50
51
52
53
version: '3'
services:
app:
container_name: backend
build: ./backend/
# ports:
# - "8080:8080"
restart: on-failure
volumes:
- ./volumes/app:/app/static/files
depends_on:
- db_postgres
networks:
- fullstack
db_postgres:
image: postgres:11
container_name: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: voting
# ports:
# - '5432:5432'
volumes:
- ./volumes/postgres:/var/lib/postgresql/data
networks:
- fullstack
front:
container_name: frontend
build: ./frontend/
ports:
- 80:80
restart: on-failure
networks:
- fullstack
# nginx:
# image: nginx:latest
# container_name: nginx
# volumes:
# - ./front/:/var/www/forum/
# - ./nginx.conf:/etc/nginx/nginx.conf
# ports:
# - 80:80
# restart: on-failure
# depends_on:
# - app
# networks:
# - fullstack
networks:
fullstack: