forked from SE-TINF22B2/G5-DuoGradus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 977 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
services:
backend:
build: ./backend
ports:
- "8080:3000"
environment:
# DATABASE_URL: "postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-development_only}@postgres:5432/duogradus?schema=public"
DATABASE_URL: "file:/usr/src/app/database/database.sqlite"
networks:
- backend
volumes:
- database:/usr/src/app/database
webserver:
build: ./frontend
ports:
- "8000:8000"
networks:
- backend
# postgres:
# image: postgres
# environment:
# POSTGRES_USER: ${POSTGRES_USER:-postgres}
# POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-development_only}
# POSTGRES_DB: duogradus
# PGDATA: /data/postgres
# volumes:
# - postgres:/data/postgres
# networks:
# - backend
# restart: always
networks:
backend:
# volumes:
# postgres:
volumes:
database:
driver: local
driver_opts:
type: none
device: ${PWD}/database
o: bind