-
Notifications
You must be signed in to change notification settings - Fork 0
/
production.yml
39 lines (35 loc) · 955 Bytes
/
production.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
version: '3'
volumes:
tuxbot_production_postgres_data: {}
tuxbot_production_postgres_data_backups: {}
services:
bot:
build:
context: .
dockerfile: docker/production/bot/Dockerfile
image: tuxbot_production_bot
container_name: tuxbot_production_bot
platform: linux/x86_64
depends_on:
- postgres
- redis
env_file:
- ./.envs/.production/.bot
- ./.envs/.production/.cogs
- ./.envs/.production/.postgres
user: tuxbot
command: /start
postgres:
build:
context: .
dockerfile: docker/production/postgres/Dockerfile
image: tuxbot_production_postgres
container_name: tuxbot_production_postgres
volumes:
- tuxbot_production_postgres_data:/var/lib/postgresql/data:Z
- tuxbot_production_postgres_data_backups:/backups:z
env_file:
- ./.envs/.production/.postgres
redis:
image: redis:7
container_name: tuxbot_production_redis