-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (52 loc) · 1.51 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
43
44
45
46
47
48
49
50
51
52
53
54
services:
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.9
# Enables the web UI and tells Traefik to listen to docker
command: --api.insecure=false --providers.docker
ports:
# The HTTP port
- "80:80"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
# The Web port
- "3000:3000"
- "3001:3001"
# - "8088:27017" mongodb
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
# Configuration File for Traefik
- ./traefik.yml:/etc/traefik/traefik.yml
frontend:
build: ./spa
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=Host(`localhost`)"
- "traefik.http.routers.frontend.entrypoints=web"
deploy:
replicas: 1
jobs :
build : "./data"
container_name: jobs_service
labels:
- "traefik.enable=true"
- "traefik.http.routers.jobs.rule=Host(`api.localhost`) && PathPrefix(`/api/jobs`)"
- "traefik.http.routers.jobs.entrypoints=web"
deploy:
replicas: 1
auth:
build: ./auth
container_name: auth_symfony
labels:
- "traefik.enable=true"
- "traefik.http.routers.auth.rule=Host(`api.localhost`)"
- "traefik.http.routers.auth.entrypoints=auth"
volumes:
- ./auth/vhosts:/etc/apache2/sites-enabled
# - ./auth/projet:/var/www/projet
mailer:
image: schickling/mailcatcher
ports:
- "1025:1025"
- "1080:1080"