-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (51 loc) · 1.15 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
version: '3.7'
services:
db:
image: postgres:latest
restart: always
volumes:
- ./database/pgdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${PG_USER}
POSTGRES_PASSWORD: ${PG_PASSWORD}
POSTGRES_DB: ${PG_DATABASE}
PG_DATA: /var/lib/postgresql/data/pgdata
ports:
- 5432:5432
adminer:
image: adminer
restart: always
ports:
- 8080:8080
minio:
image: minio/minio
restart: always
volumes:
- ./minio/data:/data
environment:
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
ports:
- 9000:9000
command: server /data
articles:
# image: renews-storage
build: articles/
restart: always
ports:
- 5000:5000
environment:
PG_USER: ${PG_USER}
PG_PASSWORD: ${PG_PASSWORD}
PG_DATABASE: ${PG_DATABASE}
PG_HOST: 'db'
PG_PORT: ${PG_PORT}
MINIO_HOST: 'minio'
MINIO_PORT: '9000'
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
depends_on:
- "db"
- "minio"
volumes:
- ./articles/articles:/var/articles