forked from Donders-Institute/hpc-webhook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-test.yml
45 lines (41 loc) · 1.02 KB
/
docker-compose-test.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
version: "3.7"
services:
server:
image: dccn/hpc-webhook-server-test
container_name: hpc_webhook_server_test_container
build:
context: .
dockerfile: Dockerfile-server-test
env_file:
- ./configs/hpc-webhook-database.env
secrets:
- hpc_webhook_private_key
- hpc_webhook_public_key
ports:
- 5111:5111
volumes:
- data:/data
networks:
- hpc_webhook_net
depends_on:
- db
db:
image: postgres:11
env_file:
- ./configs/hpc-webhook-database.env
volumes:
- ./test/init/01-initialize-database.sh:/docker-entrypoint-initdb.d/01-initialize-database.sh:ro
- ./test/init/02-fill-database.sh:/docker-entrypoint-initdb.d/02-fill-database.sh:ro
networks:
- hpc_webhook_net
restart: always
networks:
hpc_webhook_net:
volumes:
postgres:
data:
secrets:
hpc_webhook_private_key:
file: ./configs/hpc-webhook
hpc_webhook_public_key:
file: ./configs/hpc-webhook.pub