-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·42 lines (40 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
executable file
·42 lines (40 loc) · 1.02 KB
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.3"
services:
postgres:
image: postgres:alpine
restart: on-failure
environment:
- POSTGRES_DB=DATABASE_NAME
- POSTGRES_USER=DATABASE_USERNAME
- POSTGRES_PASSWORD=DATABASE_PASSWORD
ports:
- 5777:5777
volumes:
- $HOME/docker/volumes/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
start_period: 5s
core:
container_name: core
image: core:latest
restart: always
environment:
- SM_DB_NAME=DATABASE_NAME
- SM_DB_USERNAME=DATABASE_USERNAME
- SM_DB_PASSWORD=DATABASE_PASSWORD
- SM_DB_HOST=DATABASE_HOST
- SM_DB_PORT=5777
- SM_DB_LOG_MODE=false
- SM_DB_SSL_MODE=disable
build:
context: .
depends_on:
postgres:
condition: service_healthy
ports:
- 3625:3625
volumes:
- $HOME/docker/volumes/core/config.yml:/app/config.yml