-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
48 lines (47 loc) · 1017 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.8'
services:
postgres:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks:
tarok:
aliases:
- postgres
volumes:
- ./TarokDB:/var/lib/postgresql/data
nginx-proxy:
depends_on:
- frontend
- backend
image: nginx:alpine
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
networks:
tarok:
aliases:
- nginx
ports:
- "127.0.0.1:5862:80"
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
frontend:
image: ghcr.io/mytja/tarok/frontend
depends_on:
- backend
networks:
tarok:
aliases:
- frontend
backend:
image: ghcr.io/mytja/tarok/backend
restart: always
depends_on:
- postgres
networks:
tarok:
aliases:
- backend
networks:
tarok: