-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
40 lines (38 loc) · 1.08 KB
/
docker-compose.yaml
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
version: '3.8'
networks:
beacon-network:
x-environment: &env
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_BN_DATABASE=beacon-network
- BEACON_NETWORK_CONFIG_DIR=/wildfly/BEACON-INF
- BEACON_NETWORK_DB_CONNECTION_URL=jdbc:postgresql://postgres:5432/beacon-network
- BEACON_NETWORK_DB_USERNAME=beacon
- BEACON_NETWORK_DB_PASSWORD=beacon
- JBOSS_JAVA_SIZING=-XX:+UseContainerSupport -XX:MaxRAMPercentage=70.0 -Xms128m
services:
postgres:
image: postgres:16.0-alpine
restart: always
environment: *env
volumes:
- ./postgresql/data:/var/lib/postgresql/data
- ./postgresql/init.sh:/docker-entrypoint-initdb.d/init.sh:ro
networks:
- beacon-network
wildfly:
image: ghcr.io/elixir-europe/beacon-network-backend:latest
container_name: "wildfly-beacon-network"
depends_on:
- postgres
restart: always
volumes:
- ./wildfly/BEACON-INF:/wildfly/BEACON-INF
hostname: wildfly
networks:
- beacon-network
ports:
- '8080:8080'
- '8009:8009'
- '8443:8443'
environment: *env