-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
65 lines (60 loc) · 1.3 KB
/
docker-compose.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
services:
# bot:
# build:
# context: ./snapbot
# dockerfile: Dockerfile
# container_name: bot
# env_file:
# - .env
# # volumes:
# # - .:/app
# # ports:
# # - "${BOT_PORT}:${BOT_PORT}"
# depends_on:
# - database
# - storage
# networks:
# - bot_net
database:
image: postgres:alpine
container_name: database
ports:
- "${DB_PORT}:${DB_PORT}"
command: ["postgres", "-c", "port=${DB_PORT}"]
volumes:
- database_vol:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
networks:
- bot_net
# storage:
# image: 'bitnami/minio:latest'
# container_name: storage
# ports:
# - '${S3_API}:${S3_API_PORT}' # Api
# - '${S3_WEB}:${S3_WEB_PORT}' # webUI
# volumes:
# - storage_vol:/bitnami/minio/data
# environment:
# MINIO_ROOT_USER: ${S3_USER}
# MINIO_ROOT_PASSWORD: ${S3_PASSWORD}
# networks:
# - bot_net
# nginx:
# container_name: nginx
# build: ./nginx
# env_file:
# - .env
# ports:
# - '${NGINX_PORT}:${NGINX_PORT}'
# depends_on:
# - bot
# networks:
# - bot_net
volumes:
database_vol: {}
storage_vol: {}
networks:
bot_net:
driver: bridge