-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.preprod.yml
More file actions
47 lines (44 loc) · 1.33 KB
/
docker-compose.preprod.yml
File metadata and controls
47 lines (44 loc) · 1.33 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
services:
symfony-preprod:
image: symfony-php-api:preprod
container_name: preprod-api_php-sf
build:
context: ./
networks:
- api-preprod
- traefik-realt
volumes:
- ./logs/symfony:/var/www/html/var/log:cached
- ./logs/nginx:/var/log/nginx:cached
labels:
- "traefik.enable=true"
- "traefik.http.routers.api-preprod.rule=Host(`api.preprod.realtoken.community`)"
- "traefik.http.services.api-preprod.loadbalancer.server.port=80"
restart: always
db-preprod:
image: mysql:5.7
container_name: preprod-api_php-db
networks:
- api-preprod
environment:
- "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}"
- "MYSQL_USER=${MYSQL_USER}"
- "MYSQL_PASSWORD=${MYSQL_PASSWORD}"
- "MYSQL_DATABASE=${MYSQL_DATABASE}"
restart: always
adminer-preprod:
image: adminer
container_name: preprod-api_php-adminer
networks:
- api-preprod
- traefik-realt
labels:
- "traefik.enable=true"
- "traefik.http.routers.adminer-api-preprod.rule=Host(`adminer.api.preprod.realtoken.community`)"
- "traefik.http.routers.adminer-api-preprod.middlewares=auth@file"
- "traefik.http.services.adminer-api-preprod.loadbalancer.server.port=8080"
restart: always
networks:
api-preprod:
traefik-realt:
external: true