-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (59 loc) · 1.46 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
version: '3.8'
services:
wj-frontend:
build:
context: wj-frontend
dockerfile: Dockerfile
args:
VITE_OKTA_CLIENT_ID: ${OKTA_CLIENT_ID}
VITE_OKTA_ISSUER: ${OKTA_ISSUER}
VITE_REDIRECT_URI: http://localhost:3000/login/callback
VITE_API_ADDRESS: http://localhost:8080
ports:
- "3000:80"
depends_on:
- wj-db
- wj-backend
restart: always
networks:
- workout-journal-network
wj-backend:
build:
context: wj-backend
dockerfile: Dockerfile
ports:
- "8080:8080"
restart: always
depends_on:
- wj-db
environment:
ALLOWED_ORIGINS: http://localhost:3000
DATASOURCE_HOSTNAME: wj-db
DATASOURCE_PORT: 3306
DATASOURCE_DB_NAME: workout-journal-db
DATASOURCE_USERNAME: user
DATASOURCE_PASSWORD: userpass
OKTA_CLIENT_ID: ${OKTA_CLIENT_ID}
OKTA_ISSUER: ${OKTA_ISSUER}
OPENAI_KEY: ${OPENAI_KEY}
networks:
- workout-journal-network
wj-db:
image: mysql:latest
ports:
- "3307:3306"
restart: always
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_USER: user
MYSQL_PASSWORD: userpass
MYSQL_DATABASE: workout-journal-db
volumes:
- mysql-database-data-volume:/var/lib/mysql
- ./wj-db/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- workout-journal-network
volumes:
mysql-database-data-volume:
networks:
workout-journal-network: