generated from WildCodeSchool/create-js-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.prod.yml
33 lines (31 loc) · 994 Bytes
/
docker-compose.prod.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
version: '3.4'
services:
web:
build: .
container_name: ${PROJECT_NAME:-project}-web
volumes:
- .:/var/www
- ./docker-entry.sh:/etc/entrypoint.sh
entrypoint: [ "sh", "/etc/entrypoint.sh" ]
env_file:
- ../envs/.env-${GITHUB_REPOSITORY_NAME}
environment:
APP_PORT: 3310
APP_SECRET: 123456789
FRONTEND_URL: "https://${PROJECT_NAME}.${HOST}"
DB_HOST: ${DATABASE_SUBDOMAIN_NAME}-db
DB_PORT: 3306
DB_USER: ${USER_NAME}
DB_PASSWORD: ${USER_PASSWORD}
DB_NAME: ${DB_NAME}
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.${PROJECT_NAME:-project}-secure.entrypoints=websecure"
- "traefik.http.routers.${PROJECT_NAME:-project}-secure.rule=Host(`${PROJECT_NAME:-project}.${HOST:-localhost}`)"
- "traefik.http.services.${PROJECT_NAME:-project}.loadbalancer.server.port=3310"
networks:
proxy:
external: true