-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose-production.yml
55 lines (51 loc) · 1.35 KB
/
docker-compose-production.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
# -----------------------------------------------------------------------------
# DOCKER COMPOSE DEPLOYMENT
# -----------------------------------------------------------------------------
# build containers
# sudo docker compose -f docker-compose-production.yml build --no-cache
# sudo docker compose -f docker-compose-production.yml build
# serve containers
# sudo docker compose -f docker-compose-production.yml up
# sudo docker compose -f docker-compose-production.yml up --detach
# -----------------------------------------------------------------------------
volumes:
vue_dist:
driver: local
node_modules:
driver: local
services:
backend:
restart: always
build: .
volumes:
- .:/code
expose:
- "1444"
ports:
- "1444:1444"
frontend:
environment:
- API_BASE_URL=https://sbml4humans.de
build:
context: ./sbml4humans
dockerfile: Dockerfile-production
command: tail -f /dev/null
volumes:
- ./sbml4humans:/app
- node_modules:/app/node_modules/
- vue_dist:/vue
nginx:
environment:
- API_BASE_URL=https://sbml4humans.de
restart: always
image: nginx:1.27.0
ports:
- 8084:80
volumes:
- ./nginx/config/conf.d:/etc/nginx/conf.d
- vue_dist:/vue
depends_on:
- backend
- frontend
links:
- backend:backend