-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
47 lines (44 loc) · 957 Bytes
/
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
version: '3.6'
networks:
internal-net:
name: workbench_subnet
services:
proxy:
image: nginx:1.15.8-alpine
depends_on:
- chess-backend
container_name: proxy
ports:
- "4200:80"
volumes:
- ./frontend/dist:/usr/share/nginx/html:ro
- ./nginx:/etc/nginx:ro
environment:
NGINX_HOST: ninrod.org
NGINX_PORT: 80
networks:
- internal-net
chess-backend:
image: openjdk:11.0.1
depends_on:
- db
container_name: chess.backend
networks:
- internal-net
volumes:
- ./backend/build/libs:/opt/
environment:
DATABASE_ADDRESS: db
command: java -jar /opt/chess-0.0.1.jar
db:
image: postgres:11.1
container_name: db
restart: always
volumes:
- ./backend/sql/schema.sql:/docker-entrypoint-initdb.d/schema.sql
environment:
POSTGRES_PASSWORD: example
ports:
- "5432:5432"
networks:
- internal-net