-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.admin.yml
More file actions
43 lines (39 loc) · 1003 Bytes
/
docker-compose.admin.yml
File metadata and controls
43 lines (39 loc) · 1003 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
38
39
40
41
42
43
# inspired by https://github.com/BretFisher/node-docker-good-defaults
version: '3.7'
services:
baas:
image: baas_admin:prod
deploy:
replicas: 1
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.baas.rule=Host(`admin.localhost`)
- traefik.http.services.baas.loadbalancer.server.port=3000
update_config:
failure_action: rollback
order: start-first
environment:
- DB_USERNAME=baas
- DB_PASSWORD=aLongAndComplicatedSecret
- DB_HOSTNAME=postgres
- DB_DBNAME=baas_admin
- REDIS_HOSTNAME=redis
- SESSION_SECRET=aSuperSecureString
volumes:
- frontends:/opt/node_app/app/uploads
- /var/run/docker.sock:/var/run/docker.sock
# depends_on:
# - postgres
# - redis
networks:
- admin-backend
- proxy
volumes:
frontends:
name: frontends
networks:
admin-backend:
external: true
proxy:
external: true