-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (40 loc) · 1.33 KB
/
docker-compose.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
version: '3.8'
services:
replace-backend:
image: ${REPLACE_ECR_BACKEND}:${IMAGE_TAG}
environment:
- "REPLACE_URL=${REPLACE_URL}"
- "REPLACE_DATABASE_URL=${REPLACE_DATABASE_URL}"
- "REPLACE_DATABASE_USER=${REPLACE_DATABASE_USR}"
- "REPLACE_DATABASE_PASSWORD=${REPLACE_DATABASE_PSW}"
- "REPLACE_OAUTH_AUTHORIZEURL=${REPLACE_OAUTH_AUTHORIZEURL}"
- "REPLACE_OAUTH_ACCESSTOKENURL=${REPLACE_OAUTH_ACCESSTOKENURL}"
- "REPLACE_OAUTH_CLIENT_ID=${REPLACE_OAUTH_CLIENTID}"
- "REPLACE_OAUTH_CLIENT_SECRET=${REPLACE_OAUTH_SECRET}"
expose:
- 80
labels:
- "traefik.http.routers.backend.rule=PathPrefix(`/api`)"
- "traefik.http.routers.backend.entrypoints=web"
- "traefik.http.services.backend.loadbalancer.server.port=80"
replace-frontend:
image: ${REPLACE_ECR_FRONTEND}:${IMAGE_TAG}
expose:
- 80
labels:
- "traefik.http.routers.frontend.rule=PathPrefix(`/`)"
- "traefik.http.routers.frontend.entrypoints=web"
proxy:
image: traefik:latest
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker"
- "--entrypoints.web.address=:8085"
ports:
- "8085:8085"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
depends_on:
- replace-backend
- replace-frontend