-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml.example.yml
More file actions
62 lines (54 loc) · 1.81 KB
/
docker-compose.yml.example.yml
File metadata and controls
62 lines (54 loc) · 1.81 KB
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
version: "2.0"
services:
photowalk_frontend:
build: ./Frontend/
labels:
- "traefik.enable=true"
# http
- "traefik.http.middlewares.https_redirect.redirectscheme.scheme=https"
- "traefik.http.routers.photowalk_frontend-http.rule=Host(`stage.photowalk.online`)"
- "traefik.http.routers.photowalk_frontend.entrypoints=web"
- "traefik.http.routers.photowalk_frontend-http.middlewares=https_redirect"
# https
- "traefik.http.routers.photowalk_frontend.rule=Host(`stage.photowalk.online`)"
- "traefik.http.routers.photowalk_frontend.entrypoints=websecure"
- "traefik.http.routers.photowalk_frontend.tls.certresolver=myresolver"
networks:
- "web"
photowalk_backend:
build: ./Backend/
volumes:
- "./photowalk_uploads:/app/app/public"
ports:
- "8080"
labels:
- "traefik.enable=true"
# http
- "traefik.http.middlewares.https_redirect.redirectscheme.scheme=https"
- "traefik.http.routers.photowalk_backend-http.rule=Host(`stage-api.photowalk.online`)"
- "traefik.http.routers.photowalk_backend.entrypoints=web"
- "traefik.http.routers.photowalk_backend-http.middlewares=https_redirect"
# https
- "traefik.http.routers.photowalk_backend.rule=Host(`stage-api.photowalk.online`)"
- "traefik.http.routers.photowalk_backend.entrypoints=websecure"
- "traefik.http.routers.photowalk_backend.tls.certresolver=myresolver"
networks:
- "web"
- "photowalk"
photowalk_db:
image: postgres
restart: always
ports:
- "5432:5432"
environment:
- "POSTGRES_USER="
- "POSTGRES_PASSWORD="
- "POSTGRES_DB="
volumes:
- ./db-data:/var/lib/postgresql/data:rw
networks:
- "photowalk"
networks:
web:
external: true
photowalk: