-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (47 loc) · 1.12 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
44
45
46
47
version: '3'
services:
slackbot:
build:
context: .
dockerfile: Dockerfile
image: slackbot:latest
user: slackbot
container_name: slackbot_container_service
networks:
- net
links:
- postgres
volumes:
- ./assets:/home/slackbot/assets
- ./logs:/home/slackbot/logs
- ./lib:/home/slackbot/lib
- ./output:/home/slackbot/output
- ./.keys:/home/slackbot/.keys
environment:
POSTGRES_PASSWORD_FILE: /home/slackbot/.keys/.pgdb_pass
POSTGRES_DB: slackbot_prod
POSTGRES_USER: slackbot
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
PGDATA: /var/lib/postgresql/data/pg_data
command: prod
postgres:
image: postgres:alpine
networks:
- net
ports:
- 5432:5432
volumes:
- ./pg_data:/var/lib/postgresql/data/pg_data
- ./.keys:/.keys
environment:
POSTGRES_PASSWORD_FILE: /.keys/.pgdb_pass
POSTGRES_DB: slackbot_prod
POSTGRES_USER: slackbot
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
PGDATA: /var/lib/postgresql/data/pg_data
networks:
net:
volumes:
pg_data: