-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
55 lines (51 loc) · 1.33 KB
/
docker-compose.local.yml
File metadata and controls
55 lines (51 loc) · 1.33 KB
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
services:
## Infrastructure Extensions
unity-auth-db:
container_name: unity-auth-db
networks:
- unity-network
extends:
file: UnityAuth/docker-compose.db.yml
service: unity-auth-db
## API Extensions
unity-auth-api:
container_name: unity-auth-api
networks:
- unity-network
extends:
file: UnityAuth/docker-compose.api.yml
service: unity-auth-api
depends_on:
unity-auth-db:
condition: service_healthy
## UI Service - Development environment
unity-auth-ui-dev:
container_name: unity-auth-ui-dev
build:
dockerfile: DockerfileFrontend-dev
context: .
restart: no
environment:
VITE_BACKEND_URL: http://unity-auth-api:9090
ports:
- "3001:3001"
## UI Service - Production environment
## Start by: docker compose -f docker-compose.local.yml --profile prod up
## Make sure to stop unity-auth-ui-dev beforehand since they bind to the same 3001 port.
## NOTE: This seems to require updates to Nginx config to make it work.
unity-auth-ui-prod:
profiles:
- prod
container_name: unity-auth-ui-prod
build:
dockerfile: DockerfileFrontend-prod
context: .
restart: no
ports:
- "3001:80"
networks:
default:
name: unity-network
external: true
unity-network:
external: true