-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose-prod.yml
88 lines (79 loc) · 1.9 KB
/
docker-compose-prod.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
version: '3.9'
services:
mongo:
image: mongo:6.0.4
ports:
- 27017:27017
volumes:
- mongoVolume:/data/db
command: --quiet
minio:
image: minio/minio:RELEASE.2023-01-31T02-24-19Z
ports:
- 9000:9000
- 9001:9001
volumes:
- minioVolume:/data
command: server /data --console-address ":9001"
mailcrab:
image: marlonb/mailcrab:v0.10.0
ports:
- 1080:1080
- 1025:1025
nginx:
image: nginx:1.21.6-alpine
volumes:
- ./infrastructure/nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- 8080:8080
depends_on:
- frontend
- backend
registry:
restart: always
image: registry:2.8.1
ports:
- 5000:5000
environment:
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/cert.pem
REGISTRY_HTTP_TLS_KEY: /certs/key.pem
REGISTRY_STORAGE_S3_ACCESSKEY: minioadmin
REGISTRY_STORAGE_S3_SECRETKEY: minioadmin
REGISTRY_AUTH: token
REGISTRY_AUTH_TOKEN_REALM: http://backend:3001/api/v1/registry_auth
REGISTRY_AUTH_TOKEN_SERVICE: RegistryAuth
REGISTRY_AUTH_TOKEN_ISSUER: RegistryIssuer
REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE: /certs/cert.pem
volumes:
- ./backend/config/registry.conf:/etc/docker/registry/config.yml
- ./backend/certs:/certs
frontend:
image: bailo_frontend:latest
build:
context: ./frontend/
dockerfile: ./Dockerfile
depends_on:
- backend
ports:
- 3000:3000
backend:
image: bailo_backend:latest
build:
context: ./backend/
dockerfile: ./Dockerfile
ports:
- 3001:3001
volumes:
- ./backend/certs:/certs
- ./backend/certs:/usr/local/share/ca-certificates
depends_on:
- mongo
- minio
security_opt:
- seccomp:unconfined
- apparmor:unconfined
environment:
- NODE_CONFIG_ENV=docker_compose
volumes:
minioVolume:
mongoVolume: