forked from makeopensource/devU
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (62 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
63 lines (62 loc) · 1.45 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
56
57
58
59
60
61
62
version: '3.8'
services:
db:
# Runs the PostgreSQL database
image: postgres
environment:
POSTGRES_DB: typescript_api
POSTGRES_USER: typescript_user
POSTGRES_PASSWORD: password
# ports:
# - '5432:5432'
expose:
- '5432'
config:
# Generates a config file for the API
build:
context: devU-api/scripts
command: "./generateConfig.sh config/default.yml"
image: ubautograding/devtools
volumes:
- ./devU-api/config:/config
web:
# Runs the API
build: devU-api
environment:
WAIT_HOSTS: db:5432
depends_on:
db:
condition: service_started
config:
condition: service_completed_successfully
ports:
- '3001:3001'
client:
# Builds the front end and exports static files to ./dist
build:
dockerfile: ../Dockerfile-client
context: devU-client
volumes:
- ./dist:/out
nginx:
# Hosts the front end static files from ./dist/local thorough a web server
build:
context: .
dockerfile: Dockerfile-nginx
volumes:
- ./dist/local:/usr/share/nginx/html
ports:
- "9000:80"
minio:
image: minio/minio
# ports:
# - '9002:9000'
# - '9001:9001'
expose:
- '9000'
# volumes:
# - /tmp/data:/data
environment:
MINIO_ROOT_USER: typescript_user
MINIO_ROOT_PASSWORD: changeMe
command: server /data --console-address ":9001"