-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (32 loc) · 934 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
version: "3"
services:
app:
container_name: s2quat
restart: always
image: 127.0.0.1:5000/s2quat
build: .
depends_on:
- db
environment:
- "TOKEN_SECRET=${TOKEN_SECRET}"
- "PROTOCOL_PREFIX=${PROTOCOL_PREFIX}"
- "ROOT_DOMAIN=${ROOT_DOMAIN}"
- "PORT=${PORT}"
- "DATABASE_URL=${DATABASE_SERVER}://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_DB}"
ports:
- "${PORT}:${PORT}"
- "5555:5555" # for prisma studio
networks:
- database
db:
container_name: s2quat-db
restart: always
image: postgres:latest
volumes:
- ./db:/var/lib/postgresql/data
networks:
- database
ports:
- "${DATABASE_PORT}:${DATABASE_PORT}"
networks:
database: