-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.production.yaml
48 lines (45 loc) · 981 Bytes
/
compose.production.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
services:
webserver:
build:
context: .
dockerfile: Dockerfile.production
args:
- buildno
- gitcommithash
depends_on:
- database
- cache
tmpfs:
- /app/tmp:uid=1000,gid=1000
volumes:
- app-logs:/app/logs:uid=1000,gid=1000
- app-acme:/acme
working_dir: /app/
restart: always
environment:
DATABASE_URL: postgres://postgres@database/watcher_nms
ports:
- 80:80/tcp
- 443:443/tcp
database:
image: postgres:16
volumes:
- app-database:/var/lib/postgresql/data:Z
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: watcher_nms
cache:
image: redis:alpine
volumes:
- app-cache:/data
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass redis
volumes:
app-database:
app-cache:
app-logs:
app-acme: