-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
65 lines (61 loc) · 1.6 KB
/
docker-compose.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
services:
postgres:
image: postgres:latest
container_name: cocktail-recipe-postgres
ports:
- '5432:5432'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=cocktail_recipe
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- cocktail-recipe-network
# Local postgres backup
# Further information: https://github.com/prodrigestivill/docker-postgres-backup-local
# pgbackups:
# image: prodrigestivill/postgres-backup-local
# restart: always
# volumes:
# - /your/local/path:/backups
# links:
# - postgres
# depends_on:
# - postgres
# environment:
# - POSTGRES_HOST=postgres
# - POSTGRES_DB=cocktail_recipe
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# - POSTGRES_PORT=5432
# - POSTGRES_EXTRA_OPTS=-Z1 --schema=public --blobs
# - SCHEDULE=@daily
# - BACKUP_KEEP_DAYS=7
# - BACKUP_KEEP_WEEKS=4
# - BACKUP_KEEP_MONTHS=6
# - HEALTHCHECK_PORT=8080
# networks:
# - cocktail-recipe-network
cocktail-manager:
depends_on:
- postgres
links:
- postgres
image: ghcr.io/jo-gross/cocktail-manager:1.3.0
container_name: cocktail-manager
build:
context: .
dockerfile: Dockerfile
ports:
- '3000:3000'
env_file:
- .env
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/cocktail_recipe
networks:
- cocktail-recipe-network
networks:
cocktail-recipe-network:
volumes:
postgres_data: