-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·40 lines (38 loc) · 967 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·40 lines (38 loc) · 967 Bytes
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
version: "3.9"
services:
site:
build: .
container_name: silverchips_site
depends_on:
- db
deploy:
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
environment:
PYTHONUNBUFFERED: 1
expose:
- "8080"
ports:
- "8080:8080"
stop_grace_period: 3s
db:
image: postgres
container_name: silverchips_db
environment:
POSTGRES_USER: silverchips
POSTGRES_PASSWORD: silverchips
ports:
- "5432:5432"
stop_grace_period: 3s
volumes:
- type: bind
source: ./silverchips.sql
target: /docker-entrypoint-initdb.d/sco.sql
read_only: true
- type: volume
source: scodb
target: /var/lib/postgresql/
volumes:
scodb: