-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 864 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 864 Bytes
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
version: '3.7'
services:
postgres:
container_name: urthehero-postgres
image: postgres
environment:
POSTGRES_DB: test
POSTGRES_USER: testuser
POSTGRES_PASSWORD: test123
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- "5432:5432"
restart: unless-stopped
networks:
- urthehero
back:
container_name: urthehero-back
image: registry.access.redhat.com/openjdk/openjdk-11-rhel7:1.0-13
volumes:
- ./back/target:/deployments
environment:
JAVA_APP_JAR: back-0.1.1-SNAPSHOT.jar
JAVA_OPTIONS: "-Dspring.profiles.active=docker -Dfile.encoding=UTF8"
ports:
- "8080:8080"
restart: always
networks:
- urthehero
depends_on:
- postgres
networks:
urthehero:
driver: bridge
name: urthehero
volumes:
postgres: