-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
47 lines (43 loc) · 960 Bytes
/
docker-compose.yaml
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
version: "3.7"
services:
backend:
image: backend-for-frontend
build: ./backend
environment:
- OKTA_DOMAIN=${OKTA_DOMAIN}
- OKTA_CLIENT_ID=${OKTA_CLIENT_ID}
- OKTA_CLIENT_SECRET=${OKTA_CLIENT_SECRET}
- JWT_SECRET=${JWT_SECRET}
networks:
- backend
ports:
- "3000:3000"
volumes:
- ./backend:/usr/src/app
proxied:
image: proxied-service
build: ./proxied
environment:
- OKTA_DOMAIN=${OKTA_DOMAIN}
- OKTA_CLIENT_ID=${OKTA_CLIENT_ID}
- JWT_SECRET=${JWT_SECRET}
networks:
- backend
ports:
- "4000:4000"
volumes:
- ./proxied:/usr/src/app
nginx:
image: "nginx:latest"
container_name: 'vue-spa'
hostname: 'vue-spa'
networks:
- backend
ports:
- "7000:80"
volumes:
- ./nginx.local.conf:/etc/nginx/conf.d/default.conf
- ./spa/dist:/mnt/app/static
networks:
backend:
driver: bridge