-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (48 loc) · 1.06 KB
/
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
54
55
56
version: '3.7'
services:
postgres:
container_name: polypedia-postgres
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=1234
- POSTGRES_DB=polypedia
ports:
- '5432:5432'
volumes:
- ./database/createDb.sql:/docker-entrypoint-initdb.d/createDb.sql
networks:
- backend
extra_hosts:
- "host.docker.internal:host-gateway"
api:
depends_on:
- postgres
container_name: polypedia-api
build: ./backend
ports:
- "3000:3000"
networks:
- backend
volumes:
- ./backend:/usr/src/app
- /mnt/data/polypedia/files/pdf:/files/pdf
- /mnt/data/polypedia/files/img:/files/img
extra_hosts:
- "host.docker.internal:host-gateway"
frontend:
container_name: polypedia-frontend
build: ./frontend
ports:
- "80:80"
- "443:443"
# volumes:
# - ./frontend:/app
# stdin_open: true
# tty: true
# environment:
# - CHOKIDAR_USEPOLLING=true
networks:
backend:
driver: bridge