-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 959 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 959 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
version: "2"
services:
coliving:
build: .
# image: docker.pkg.github.com/cothings-app/cothings/cothings:latest
env_file:
- .env
links:
- db
labels:
# Traefik v2
- "traefik.enable=true"
- "traefik.http.routers.coliving-secure.entrypoints=web-secure"
- "traefik.http.routers.coliving-secure.rule=Host(`${HOST}`)"
- "traefik.http.routers.coliving-secure.tls.certresolver=default"
# Traefik v1
# - "traefik.enable=true"
# - "traefik.backend=co-living"
# - "traefik.frontend.rule=Host:${HOST}"
# - "traefik.port=$PORT"
restart: unless-stopped
networks:
- proxy
db:
image: postgres:12.1-alpine
environment:
- POSTGRES_USER=
- POSTGRES_PASSWORD=
- POSTGRES_DB=
volumes:
- ~/data/coliving/database:/var/lib/postgresql/data
restart: unless-stopped
networks:
- proxy
networks:
proxy:
external: true