-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
117 lines (109 loc) · 2.36 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version: "3"
services:
client-dev:
profiles:
- dev
platform: linux/x86_64
command: "yarn run dev"
build:
context: ./mimir-ui
dockerfile: ./Dockerfile-dev
args:
SERVER_DOMAIN: ${SERVER_DOMAIN:-localhost:4567}
env_file:
- client.env
volumes:
- ./mimir-ui:/home/node/app
- exclude:/home/node/app/node_modules
networks:
- mimir-net
restart: always
client:
profiles:
- staging
platform: linux/x86_64
image: ghcr.io/nbisweden/mimir-client:${TAG:-latest}
env_file:
- client.env
networks:
- mimir-net
restart: always
backend-dev:
profiles:
- dev
platform: linux/x86_64
entrypoint: ["python", "manage.py", "runserver", "0.0.0.0:8000"]
build:
context: ./mimir-server
dockerfile: ./Dockerfile
target: wsgi-server
env_file:
- backend-wsgi-server.env
volumes:
- ./mimir-server:/app
- ./database:/app/database
ports:
- "127.0.0.1:${WSGI_PORT:-8000}:8000"
networks:
- mimir-net
restart: always
backend-wsgi-server:
profiles:
- staging
platform: linux/x86_64
image: ghcr.io/nbisweden/mimir-backend-wsgi-server:${TAG:-latest}
env_file:
- backend-wsgi-server.env
volumes:
- ./database:/app/database
ports:
- "127.0.0.1:${WSGI_PORT:-8000}:8000"
networks:
- mimir-net
restart: always
backend-web-server:
profiles:
- staging
platform: linux/x86_64
image: ghcr.io/nbisweden/mimir-backend-web-server:${TAG:-latest}
env_file:
- backend-web-server.env
ports:
- "127.0.0.1:${SERVER_PORT:-9000}:80"
networks:
- mimir-net
restart: always
nginx:
profiles:
- dev
image: nginx:1-alpine-slim
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
env_file:
- nginx-certbot.env
ports:
- 4567:80
networks:
- mimir-net
restart: always
nginx-certbot:
profiles:
- staging
image: jonasal/nginx-certbot:4-alpine
volumes:
- ./user_conf.d:/etc/nginx/user_conf.d
- nginx_secrets:/etc/letsencrypt
env_file:
- nginx-certbot.env
ports:
- "80:80"
- "443:443"
networks:
- mimir-net
restart: always
volumes:
nginx_secrets:
exclude:
networks:
mimir-net:
driver: bridge