-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (55 loc) · 1.16 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
48
49
50
51
52
53
54
55
56
57
58
59
60
---
# https://github.com/compose-spec/compose-spec/blob/master/spec.md
version: "3"
services:
app:
container_name: fybot
build: .
image: local/fybot:beta
hostname: fybot
restart: unless-stopped
ports:
- "8501:8501"
volumes:
- ./fybot:/usr/src/fybot
networks:
- fybot-net
- db-net
depends_on:
- db-server
db-server:
container_name: db-server
image: postgres:13
hostname: ${DB_HOST}
restart: unless-stopped
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_USER=${DB_USER}
ports:
- ${DB_PORT}:5432
volumes:
- db-data:/var/lib/postgresql/data
- ./fybot/config/create_tables.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- db-net
db-admin:
container_name: db-admin
image: adminer
hostname: db-admin
restart: unless-stopped
environment:
- ADMINER_DEFAULT_SERVER=${DB_HOST}
- ADMINER_DESIGN=pepa-linha
ports:
- "8080:8080"
depends_on:
- db-server
networks:
- fybot-net
- db-net
volumes:
db-data:
networks:
fybot-net:
db-net: