-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
65 lines (60 loc) · 2.18 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
55
56
57
58
59
60
61
62
63
64
65
version: '2'
services:
traefik:
image: containous/traefik:pr-433
command: --web --docker --docker.domain=huitparfait.fr --logLevel=DEBUG
restart: always
ports:
- "80:80"
- "443:443"
- "127.0.0.1:8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.toml:/etc/traefik/traefik.toml
- ./acme:/acme
huitparfait-front:
image: huitparfait/huitparfait-front
restart: always
labels:
- "traefik.backend=huitparfait-front"
- "traefik.protocol=http"
- "traefik.port=80"
- "traefik.frontend.rule=Host:huitparfait.fr"
huitparfait-auth:
build: ./huitparfait-auth
image: huitparfait/huitparfait-auth
restart: always
volumes:
- ./keys:/jwt-keys
environment:
NODE_ENV: production
SERVER_URL: http://localhost:3000
SERVER_PORT: 3000
PROXY_API_URL: http://huitparfait-api:3000
JWT_PUBLIC_KEY_PATH: /jwt-keys/jwt-public.pem
JWT_PRIVATE_KEY_PATH: /jwt-keys/jwt-private.pem
FACEBOOK_CLIENT_ID: FACEBOOK_CLIENT_ID
FACEBOOK_CLIENT_SECRET: FACEBOOK_CLIENT_SECRET
GOOGLE_CLIENT_ID: GOOGLE_CLIENT_ID
GOOGLE_CLIENT_SECRET: GOOGLE_CLIENT_SECRET
YAHOO_CLIENT_ID: YAHOO_CLIENT_ID
YAHOO_CLIENT_SECRET: YAHOO_CLIENT_SECRET
labels:
- "traefik.backend=huitparfait-auth"
- "traefik.protocol=http"
- "traefik.port=3000"
- "traefik.frontend.rule=Host:huitparfait.fr;PathPrefix:/api,/auth"
huitparfait-api:
build: ./huitparfait-api
image: huitparfait/huitparfait-api
restart: always
volumes:
- ./keys:/jwt-keys
environment:
NODE_ENV: production
SERVER_URL: http://localhost:3000
SERVER_PORT: 3000
JWT_PUBLIC_KEY_PATH: /jwt-keys/jwt-public.pem
JWT_PRIVATE_KEY_PATH: /jwt-keys/jwt-private.pem
API_ANALYTICS_API_KEY: API_ANALYTICS_API_KEY
HTTP_SECRET: HTTP_SECRET