forked from ShieldBattery/ShieldBattery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (38 loc) · 1.22 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
version: '3.7'
# This docker-compose file is meant to be useful for development. It spins up containers for
# software dependencies that we don't actively develop.
#
# $ docker-compose up -d
#
# Containers should be prefixed with the directory name containing this file.
#
# For more information, check out docs/GETTING_STARTED.md
volumes:
db_data:
redis_data:
services:
redis:
image: redis:6.2.6-alpine
restart: always
command: ['redis-server', '--appendonly', 'yes']
ports:
- '6380:6379'
volumes:
- redis_data:/data
db:
image: postgres:12-alpine
restart: always
ports:
- '5433:5432'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=${POSTGRES_SUPER_PASSWORD:?missing POSTGRES_SUPER_PASSWORD}
- POSTGRES_DB=postgres
- SB_DB=${SB_DB:-shieldbattery}
- SB_DB_USER=${SB_DB_USER:-shieldbattery}
- SB_DB_PASSWORD=${SB_DB_PASSWORD:?missing SB_DB_PASSWORD}
volumes:
- ./deployment/appserver/db/init-scripts:/docker-entrypoint-initdb.d:ro
- ./deployment/appserver/db/postgresql.conf:/etc/postgresql/postgresql.conf:ro
- db_data:/var/lib/postgresql/data
command: postgres -c config_file=/etc/postgresql/postgresql.conf