forked from ashlessscythe/timeoff-alien
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-example.yaml
More file actions
34 lines (31 loc) · 862 Bytes
/
docker-compose-example.yaml
File metadata and controls
34 lines (31 loc) · 862 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
## Copy `.env.example`, save as `.env`, modify as required
## Copy this file, save as 'docker-compose.yaml', modify as required
## Run `docker compose up -d --build`
services:
# TIMEOFF APP
web:
container_name: ${COMPOSE_PROJECT_NAME}
build: .
environment:
DATABASE_URL: ${DB_DIALECT}://${DB_USER}:${DB_PASSWORD}@${DB_HOST}/${DB_DATABASE}
ports:
- "${PORT}:${PORT}"
volumes:
- ./.env:/app/.env
restart: unless-stopped
# DATABASE
postgres:
image: postgres:latest
container_name: postgres-timeoff-dev
environment:
### SEE .env
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- postgres-data:/var/lib/postgresql/data
# Uncomment for external access
#ports:
# - "${DB_PORT}:5432"
volumes:
postgres-data: