-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
79 lines (73 loc) · 2.04 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
include:
- ./authentik/docker-compose.yml
services:
database:
image: mariadb:10.5
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 100
environment:
- MARIADB_ALLOW_EMPTY_PASSWORD=1
- MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=1
- MARIADB_USER=root
ports:
- 3306:3306
volumes:
- db_vol:/var/lib/mysql
presenter:
image: ghcr.io/dreammall-earth/dreammall.earth/presenter:${IMAGE_TAG:-latest}
build:
context: ./presenter
target: production
ports:
- 3001:3000
environment:
- NODE_ENV=production
- PUBLIC_ENV__SIGNUP_URI=http://localhost:9000/if/flow/dreammallearth-enrollment/
- PUBLIC_ENV__SIGNIN_URI=http://localhost:3000/signin
frontend:
image: ghcr.io/dreammall-earth/dreammall.earth/frontend:${IMAGE_TAG:-latest}
build:
context: ./frontend
target: production
ports:
- 3000:3000
environment:
- NODE_ENV=production
backend:
image: ghcr.io/dreammall-earth/dreammall.earth/backend:${IMAGE_TAG:-latest}
build:
context: ./backend
target: production
depends_on:
authentik: # because JWKS_URI
condition: service_started
database:
condition: service_started
migrations:
condition: service_completed_successfully
ports:
- 4000:4000
env_file: backend/.env
environment:
DATABASE_URL: mysql://root:@database:3306/dreammall.earth
JWKS_URI: http://authentik:9000/application/o/dreammallearth/jwks/
NODE_ENV: production
# LOG_LEVEL: SILLY
migrations:
image: ghcr.io/dreammall-earth/dreammall.earth/backend:${IMAGE_TAG:-latest}
command: npm run db:migrate:deploy
build:
context: ./backend
target: production
depends_on:
database:
condition: service_healthy
environment:
DATABASE_URL: mysql://root:@database:3306/dreammall.earth
NODE_ENV: production
volumes:
db_vol: