-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
93 lines (86 loc) · 2.14 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
version: '3'
services:
gateway:
build: ./images/gateway
ports:
- 127.0.0.1:80:80
volumes:
- ./images/gateway/etc/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf:ro
keycloak:
image: jboss/keycloak:16.1.1
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- KEYCLOAK_FRONTEND_URL=http://localhost/auth
- KEYCLOAK_LOGLEVEL=ALL
- PROXY_ADDRESS_FORWARDING=true
command:
- -b
- 0.0.0.0
- -Dkeycloak.migration.action=import
- -Dkeycloak.migration.provider=dir
- -Dkeycloak.migration.dir=/migration
- -Dkeycloak.migration.strategy=IGNORE_EXISTING
volumes:
- ./images/keycloak/migration:/migration:ro
- ./mounts/keycloak:/opt/jboss/keycloak/standalone/data
frontend:
build:
context: .
dockerfile: apps/ct-frontend/docker.dev/Dockerfile
volumes:
- ./:/app
- /app/node_modules
backend:
build:
context: .
dockerfile: apps/ct-backend/docker.dev/Dockerfile
environment:
- TYPEORM_URL=mysql://user:password@database:3306/application
- TYPEORM_LOGGING=true
- TYPEORM_SYNCHRONIZE=true
ports:
- 127.0.0.1:40001:40001
volumes:
- ./:/app
- /app/node_modules
database:
image: mysql:8.0.29
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=application
- MYSQL_USER=user
- MYSQL_PASSWORD=password
command:
- mysqld
- --character-set-server=utf8mb4
- --sql-mode=
ports:
- 127.0.0.1:3306:3306
volumes:
- ./mounts/mysql:/var/lib/mysql
restart: always
storage:
image: satantime/minio-server:RELEASE.2022-05-04T07-45-27Z
environment:
- MINIO_ACCESS_KEY=123
- MINIO_SECRET_KEY=12345678
ports:
- 127.0.0.1:9000:9000
volumes:
- ./mounts/minio:/data
restart: always
smtp:
image: rnwood/smtp4dev:3.1.3.2
command:
- --smtpport
- '1025'
- --db
- /tmp/smtp/mails.db
- --messagestokeep
- '1000'
- --sessionstokeep
- '1000'
volumes:
- ./mounts/smtp:/tmp/smtp
restart: always