-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
43 lines (42 loc) · 1.2 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
version: "2"
services:
espn-ffb:
container_name: espn-ffb
depends_on:
- espn-ffb-db
build:
context: .
args:
APP_DIR: /opt/espn-ffb
CONFIG_DIR: /etc/opt/espn-ffb
LOG_BASE_DIR: /var/log/espn-ffb
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_HOST=espn-ffb-db
- POSTGRES_PORT=5432
volumes:
- ./espn_ffb:/opt/espn-ffb/espn_ffb
# Store web logs in a local host directory
- ./docker/data/logs/web:/var/log/espn-ffb
# Store web logs in a named Docker volume
# - espn_ffb_logs:${LOG_BASE_DIR}
ports:
- 5000:5000
restart: unless-stopped
espn-ffb-db:
image: postgres:12-alpine
container_name: espn-ffb-db
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
# Store db data in a local host directory
- ./docker/data/db:/var/lib/postgresql/data
# Store db data in a named Docker volume
# - espn_ffb_db:/var/lib/postgresql/data
ports:
- 5432:5432
restart: unless-stopped