-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (34 loc) · 906 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (34 loc) · 906 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
version: '3'
services:
nginx:
build: data/nginx
image: tabletennis/nginx
hostname: nginx
container_name: nginx
restart: unless-stopped
ports:
- 443:443
app:
build:
context: .
args:
DATABASE_URL: "postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}"
image: tabletennis/app
container_name: tabletennis
restart: unless-stopped
hostname: app
depends_on:
- postgres
environment:
DATABASE_URL: "postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}"
postgres:
image: postgres:15
container_name: postgres
restart: unless-stopped
hostname: postgres
volumes:
- ./data/postgres/data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_USER: $POSTGRES_USER
POSTGRES_DB: $POSTGRES_DB