-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (72 loc) · 1.7 KB
/
docker-compose.yml
File metadata and controls
80 lines (72 loc) · 1.7 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "3.5"
networks:
default:
driver: bridge
volumes:
postgres:
pgadmin:
services:
postgres:
container_name: postgres
image: postgres
restart: always
env_file:
- .env
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- postgres:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -h localhost -U ${POSTGRES_USER}" ]
interval: 5s
timeout: 5s
retries: 5
ports:
- "${POSTGRES_PORT}:5432"
pgadmin:
container_name: pgAdmin
image: dpage/pgadmin4:snapshot
env_file:
- .env
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
volumes:
- pgadmin:/var/lib/pgadmin
ports:
- "${PGADMIN_PORT}:80"
restart: unless-stopped
depends_on:
- postgres
BackendService:
container_name: BackendService
image: backend_service:latest
build:
context: ./BackendService
dockerfile: ./Dockerfile
env_file:
- .env
environment:
SERVER_PORT: ${SERVER_PORT}
POSTGRES_URL: ${POSTGRES_URL}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
depends_on:
- postgres
LetiPrintBot:
container_name: LetiPrintBot
image: leti_print_bot:latest
build:
context: ./LetiPrintBot
dockerfile: ./Dockerfile
env_file:
- .env
environment:
TOKEN: ${TOKEN}
BACKEND_IP: ${BACKEND_IP}
depends_on:
- BackendService