-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
63 lines (60 loc) · 1.37 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
61
62
63
version: '3.9'
services:
backend:
build: .
image: otog-backend:latest
container_name: otog-backend
restart: unless-stopped
volumes:
- ./volumes/upload:/usr/src/app/volumes/upload:rw
- ./docs:/usr/src/app/docs:rw
- ./source:/usr/src/app/source:rw
depends_on:
postgres:
condition: service_healthy
env_file:
- .env
ports:
- ${PORT}:${PORT}
networks:
- otog-network
postgres:
image: postgres:14
container_name: otog-postgres
restart: unless-stopped
environment:
PGPORT: ${DB_PORT}
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- ${DB_PORT}:${DB_PORT}
env_file:
- .env
volumes:
- ./volumes/postgres:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${DB_USERNAME}']
interval: 5s
timeout: 5s
retries: 5
networks:
- otog-network
minio:
image: minio/minio
ports:
- '9000:9000'
- '9001:9001'
volumes:
- ./volumes/minio:/data
env_file:
- .env
environment:
MINIO_ROOT_USER: ${S3_ACCESS_KEY_ID}
MINIO_ROOT_PASSWORD: ${S3_SECRET_ACCESS_KEY}
command: server --console-address ":9001" /data
networks:
- otog-network
networks:
otog-network:
name: otog-network