-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
55 lines (51 loc) · 1.21 KB
/
docker-compose.prod.yml
File metadata and controls
55 lines (51 loc) · 1.21 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
services:
postgres:
image: postgres
container_name: postgress_db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: mydb
ports:
- "5432:5432" # Data base port
volumes:
- pgdata:/var/lib/postgresql/data
minio:
image: minio/minio
container_name: file_storage
ports:
- "9000:9000" # API
- "9001:9001" # Console UI
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin123
volumes:
- miniodata:/data
command: server /data --console-address ":9001"
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "8080:80"
depends_on:
- postgres
sysdev-website:
build:
context: .
dockerfile: Dockerfile
container_name: sysdev-website
restart: always
environment:
DATABASE_URL: postgres://postgres:password@postgres:5432/mydb
MINIO_PUBLIC_URL: localhost:9000
IMAGE_BUCKET: sysdev-images
ports:
- "8000:8000" # Local port
depends_on:
- postgres
volumes:
pgdata:
miniodata: