-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.staging.yml
114 lines (114 loc) · 3.13 KB
/
docker-compose.staging.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: "3"
services:
moviepark-traefik:
image:
traefik:v2.3
container_name: moviepark-traefik
restart: always
command:
- "--log.level=ERROR"
- "--api.dashboard=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=moviepark-network"
- "--entrypoints.web.address=:80"
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=Host(`dashboard.localhost`)"
- "traefik.http.routers.api.service=api@internal"
- "traefik.http.routers.api.middlewares=auth"
#Hashed password => 'password'
- "traefik.http.middlewares.auth.basicauth.users=lazar:$$2y$$10$$ciI3Y86xGCi9wyiCYLuHNuttnHs9HmWOWTXmeesFlVHt0JASoYGwC"
ports:
- 80:80
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- moviepark-network
moviepark-client:
image: moviepark-client:1.2
build:
context: ./client
dockerfile: Dockerfile
container_name: moviepark-client
environment:
- BASE_URL=http://0.0.0.0:3000
- API_URL=
- API_BROWSER_URL=
- COOKIE_DOMAIN=
labels:
- "traefik.enable=true"
- "traefik.http.routers.moviepark-client.rule=Host(`localhost`)"
- "traefik.http.routers.moviepark-client.entrypoints=web"
restart: always
depends_on:
- moviepark-traefik
- moviepark-server
networks:
- moviepark-network
moviepark-server:
image: moviepark-server:1.3
build:
context: ./server
dockerfile: Dockerfile
container_name: moviepark-server
environment:
- PORT=3333
- HOST=0.0.0.0
- NODE_ENV=production
- APP_NAME=
- APP_KEY=
- TMDB_API_KEY=
- UTELLY_API_KEY=
- CLIENT_URL=
- CLIENT_BROWSER_URL=
- REDIS_CONNECTION=
- REDIS_HOST=
- REDIS_PORT=
- REDIS_PASSWORD=
- DB_HOST=
- DB_CONNECTION=pg
- DB_USER=
- DB_PASSWORD=
- DB_NAME=
- SESSION_DRIVER=cookie
- COOKIE_DOMAIN=
labels:
- "traefik.enable=true"
- "traefik.http.routers.moviepark-server.rule=Host(`localhost`) && PathPrefix(`/api`)"
- "traefik.http.routers.moviepark-server.middlewares=moviepark-server-stripprefix"
- "traefik.http.middlewares.moviepark-server-stripprefix.stripprefix.prefixes=/api"
- "traefik.http.routers.moviepark-server.entrypoints=web"
restart: always
depends_on:
- moviepark-traefik
- moviepark-redis
- moviepark-postgres
networks:
- moviepark-network
moviepark-redis:
image: redis:6-alpine
container_name: moviepark-redis
volumes:
- moviepark-redisData:/data
restart: always
networks:
- moviepark-network
moviepark-postgres:
image: postgres:12-alpine
container_name: moviepark-postgres
environment:
- POSTGRES_DB=
- POSTGRES_USER=
- POSTGRES_PASSWORD=
volumes:
- moviepark-postgresData:/var/lib/postgresql/data
restart: always
networks:
- moviepark-network
networks:
moviepark-network:
driver: bridge
volumes:
moviepark-redisData:
moviepark-postgresData: