-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yml
41 lines (37 loc) · 920 Bytes
/
local.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
version: '3'
volumes:
tuxbot_local_postgres_data: {}
tuxbot_local_postgres_data_backups: {}
services:
bot:
build:
context: .
dockerfile: docker/local/bot/Dockerfile
image: tuxbot_local_bot
container_name: tuxbot_local_bot
platform: linux/x86_64
depends_on:
- postgres
- redis
volumes:
- .:/app:z
env_file:
- ./.envs/.local/.bot
- ./.envs/.local/.cogs
- ./.envs/.local/.postgres
user: tuxbot
command: /start
postgres:
build:
context: .
dockerfile: docker/production/postgres/Dockerfile
image: tuxbot_production_postgres
container_name: tuxbot_local_postgres
volumes:
- tuxbot_local_postgres_data:/var/lib/postgresql/data:Z
- tuxbot_local_postgres_data_backups:/backups:z
env_file:
- ./.envs/.local/.postgres
redis:
image: redis:7
container_name: tuxbot_local_redis