forked from openpro-io/openpro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
103 lines (94 loc) · 2.52 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: "3.8"
networks:
internal:
volumes:
uploads:
pgdata:
services:
postgresql-db:
image: postgres:16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
networks:
- internal
volumes:
- pgdata:/var/lib/postgresql/data
# ports:
# - "5432:5432"
openpro-minio:
image: minio/minio
container_name: openpro-minio
environment:
MINIO_PORT: 9000
MINIO_HOST: openpro-minio
MINIO_ROOT_USER: access-key
MINIO_ROOT_PASSWORD: secret-key
pull_policy: always
restart: unless-stopped
networks:
- internal
command: server /uploads --console-address ":9090"
volumes:
- uploads:/uploads
createbuckets:
image: minio/mc
environment:
MINIO_PORT: 9000
MINIO_HOST: openpro-minio
MINIO_ROOT_USER: access-key
MINIO_ROOT_PASSWORD: secret-key
BUCKET_NAME: uploads
pull_policy: always
networks:
- internal
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add openpro-minio http://openpro-minio:9000 access-key secret-key;
/usr/bin/mc mb openpro-minio/uploads;
/usr/bin/mc anonymous set download openpro-minio/uploads;
"
depends_on:
- openpro-minio
backend:
container_name: backend
image: ghcr.io/openpro-io/openpro-backend:latest
environment:
HTTP_PORT: 8080
SQL_URI: postgres://postgres:postgres@postgresql-db:5432/postgres
FRONTEND_HOSTNAME: http://frontend:3000
FILE_SIZE_LIMIT: 5242880
BUCKET_NAME: uploads
# Minio
MINIO_PORT: 9000
MINIO_HOST: openpro-minio
MINIO_ROOT_USER: access-key
MINIO_ROOT_PASSWORD: secret-key
networks:
- internal
depends_on:
- postgresql-db
- createbuckets
frontend:
container_name: frontend
image: ghcr.io/openpro-io/openpro-frontend:latest
environment:
NEXT_PUBLIC_API_URL: http://backend:8080
NEXTAUTH_URL: http://localhost:3000
NEXTAUTH_SECRET: # openssl rand -base64 32
NEXT_PUBLIC_NEXTAUTH_URL: http://localhost:3000
NEXT_PUBLIC_DEFAULT_LOGIN_PROVIDER: # github|keycloak
# Uncomment the following lines to enable keycloak OAuth
#AUTH_KEYCLOAK_ID:
#AUTH_KEYCLOAK_SECRET:
#KEYCLOAK_BASE_URL:
# Uncomment the following lines to enable GitHub OAuth
#GITHUB_CLIENT_ID: <client-id>
#GITHUB_CLIENT_SECRET: <client-secret>
networks:
- internal
ports:
- "3000:3000"
depends_on:
- backend