-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.prod.yml
79 lines (77 loc) · 2.11 KB
/
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
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.3'
services:
api:
build:
context: ./api
dockerfile: dev.dockerfile
image: 'project-dashboard-conversations_api:latest'
environment:
- MDB_NAME=platzi-store
- MDB_PORT=27017
- MDB_HOST=mongo
- CDB_NAME=platzi_store
- CDB_PORT=8091
- CDB_HOST=couchbase
- CDB_USER=admin
- CDB_PWD=admin123
- NODE_ENV=dev
deploy:
labels:
- traefik.frontend.rule=Host:api.nicobytes.site
- traefik.enable=true
- traefik.port=3000
- traefik.tags=traefik-public
- traefik.docker.network=traefik-public
- traefik.redirectorservice.frontend.entryPoints=http
- traefik.redirectorservice.frontend.redirect.entryPoint=https
- traefik.webservice.frontend.entryPoints=https
depends_on:
- mongo
- couchbase
networks:
- traefik-public
- default
mongo:
image: mongo
networks:
- traefik-public
- default
couchbase:
image: couchbase:enterprise-6.0.2
volumes:
- couchbase-data:/opt/couchbase/var
deploy:
labels:
- traefik.frontend.rule=Host:db.nicobytes.site
- traefik.enable=true
- traefik.port=8091
- traefik.tags=traefik-public
- traefik.docker.network=traefik-public
- traefik.redirectorservice.frontend.entryPoints=http
- traefik.redirectorservice.frontend.redirect.entryPoint=https
- traefik.webservice.frontend.entryPoints=https
networks:
- traefik-public
- default
webapp:
image: 'project-dashboard-conversations_webapp:latest'
build:
context: ./webapp
dockerfile: Dockerfile
deploy:
labels:
- traefik.frontend.rule=Host:nicobytes.site
- traefik.enable=true
- traefik.port=80
- traefik.tags=traefik-public
- traefik.docker.network=traefik-public
- traefik.redirectorservice.frontend.entryPoints=http
- traefik.webservice.frontend.entryPoints=https
networks:
- traefik-public
- default
volumes:
couchbase-data:
networks:
traefik-public:
external: true