-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-development.yml
59 lines (54 loc) · 1.93 KB
/
docker-compose-development.yml
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
version: "3.8"
services:
db:
env_file:
- ./core_api/.env.dev
volumes:
- /home/bbo/composite/postgres-data-dev:/var/lib/postgresql/data
adminer:
labels:
- traefik.enable=true
- "traefik.http.routers.adminer.rule=Host(`adminer.dev.compositethegame.com`)"
- traefik.http.services.adminer.loadbalancer.server.port=8080
- traefik.http.routers.adminer.entrypoints=websecure
- traefik.http.routers.adminer.tls.certresolver=myresolver
traefik:
image: traefik:latest
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
- "--certificatesresolvers.myresolver.acme.email=boursbenjamin@gmail.com"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/bbo/composite/letsencrypt-dev:/letsencrypt
ports:
# The HTTP port
- "80:80"
# The HTTPS port
- "443:443"
core_api:
image: boursbenjamin/composite-core_api:1.0.0-next.21
depends_on:
- db
env_file:
- ./core_api/.env.dev
labels:
- "traefik.http.routers.api.rule=Host(`dev.api.compositethegame.com`)"
- traefik.http.middlewares.api_middleware.headers.accesscontrolalloworiginlist=https://dev.compositethegame.com
- traefik.http.routers.api.entrypoints=websecure
- traefik.http.routers.api.tls.certresolver=myresolver
volumes:
- /home/bbo/composite/api-uploads:/app/uploads
front:
image: boursbenjamin/composite-front:1.0.0-next.33
depends_on:
- db
env_file:
- ./front/.env.dev
labels:
- traefik.http.routers.front.rule=Host(`dev.compositethegame.com`)
- traefik.http.routers.front.entrypoints=websecure
- traefik.http.routers.front.tls.certresolver=myresolver