-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (55 loc) · 1.32 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
version: '3'
services:
pg:
image: postgres:latest
restart: always
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: $PGPASSWORD
labels:
- "traefik.frontend.rule=Host:pgsql.cchampou.me"
preview:
build: .
image: cda-user-api:latest
restart: always
labels:
- "traefik.frontend.rule=Host:auth.cda.cchampou.me"
- "traefik.backend.port=3000"
- "traefik.enable=true"
- "traefik.docker.network=layko_layko_net"
links:
- pg
environment:
NODE_ENV: staging
PGUSER: $PGUSER
PGDATABASE: $PGDATABASE
PGPORT: $PGPORT
PGHOST: $PGHOST
PGPASSWORD: $PGPASSWORD
JWT_SECRET: $JWT_SECRET
JWT_EXPIRATION: $JWT_EXPIRATION
production:
build: .
image: cda-user-api:latest
restart: always
labels:
- "traefik.frontend.rule=Host:auth.parrainage.confidencesdabeilles.fr"
- "traefik.backend.port=3000"
- "traefik.enable=true"
- "traefik.docker.network=layko_layko_net"
links:
- pg
environment:
NODE_ENV: production
PGUSER: $PGUSER
PGDATABASE: $PGDATABASE
PGPORT: $PGPORT
PGHOST: $PGHOST
PGPASSWORD: $PGPASSWORD
JWT_SECRET: $JWT_SECRET
JWT_EXPIRATION: $JWT_EXPIRATION
networks:
default:
external:
name: layko_layko_net