-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
69 lines (69 loc) · 1.81 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
version: "3"
services:
nginx:
image: nginx:1.23
ports:
- ${OPENBIS_PORT}:80
- ${OPENBIS_SSL_PORT}:443
environment:
OPENBIS_SSL_PORT: ${OPENBIS_SSL_PORT}
volumes:
- ./nginx/entrypoint.sh:/entrypoint.sh:ro
- ./nginx/conf.d:/etc/nginx/conf.d:ro
- ./nginx/certs:/etc/nginx/certs
entrypoint: /entrypoint.sh
networks:
- openbis_net
depends_on:
- openbis
- openbismantic_api
openbis:
# build: .
# container_name: "openbis"
image: ghcr.io/mat-o-lab/openbismantic:main #will be changed to latest
environment:
SERVER_HOST_PORT: "${HOST_NAME}:${OPENBIS_SSL_PORT}"
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ADMIN_PASS: ${ADMIN_PASS}
GROUP_NAME: ${GROUP_NAME}
GROUP_ID : ${GROUP_ID}
restart: always
networks:
- openbis_net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/openbis"]
interval: 15s
timeout: 10s
retries: 30
start_period: 30s
init_database:
# build:
# context: ./init_database
# dockerfile: ./Dockerfile
container_name: init_database
image: ghcr.io/mat-o-lab/openbismantic_init:main #will change to latest
environment:
SERVER_HOST_PORT: "nginx:443"
ADMIN_PASS: ${ADMIN_PASS}
depends_on:
openbis:
condition: service_healthy
restart: "on-failure"
networks:
- openbis_net
openbismantic_api:
# build:
# context: ./openbismantic_api
# dockerfile: ./Dockerfile
container_name: openbismantic_api
image: ghcr.io/mat-o-lab/openbismantic_api:main
volumes:
- ./openbismantic_api:/src
environment:
BASE_URL: "https://${HOST_NAME}:${OPENBIS_SSL_PORT}"
networks:
- openbis_net
networks:
openbis_net:
name: openbis_net
driver: bridge