-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
62 lines (61 loc) · 1.51 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
version: "3.3"
services:
backend:
build: backend
restart: unless-stopped
environment:
- LD_LIBRARY_PATH=/oracle
# LD_LIBRARY_PATH needs to be defined here so it applies before Python starts
# Use backend/.env file for most variables
expose:
- "5057"
depends_on:
db:
condition: service_healthy
volumes:
- ./data/backend:/app/backend/mount
networks:
- default
- autolab
db:
image: postgres:15
restart: unless-stopped
environment:
- POSTGRES_USER=autolab
- POSTGRES_PASSWORD=changeme
- POSTGRES_DB=autolabportal
# These ports should be commented out in production, but they're helpful during development
ports:
- "127.0.0.1:5432:5432"
expose:
- "5432"
volumes:
- ./data/db:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U autolab -d autolabportal" ]
interval: 3s
timeout: 5s
retries: 50
frontend-build:
build:
context: frontend
dockerfile: Dockerfile-build
volumes:
- ./frontend/autolab-self-service:/app
frontend:
build: frontend
restart: unless-stopped
depends_on:
frontend-build:
condition: service_completed_successfully
ports:
- "127.0.0.1:82:80"
volumes:
- ./data/frontend/logs:/var/log/nginx
- ./frontend/autolab-self-service/dist/spa:/usr/share/nginx/html
networks:
default:
driver: bridge
autolab:
name: autolab-docker_default
external: true