-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.docker-compose.yml
49 lines (49 loc) · 1.4 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
# not in use
version: '3.8'
services:
front:
container_name: 'multi-store-player-front'
build:
context: .
dockerfile: packages/front/.Dockerfile
command: yarn workspace fomoplayer_front start
ports:
- ${FRONTEND_PORT}:${FRONTEND_PORT}
environment:
- NODE_ENV=${NODE_ENV}
- API_URL=${API_URL}
- API_PORT=${API_PORT}
- FRONTEND_PORT=${FRONTEND_PORT}
- REACT_APP_API_PORT=${API_PORT}
- REACT_APP_API_URL=${API_URL}
back:
container_name: 'multi-store-player-back'
build:
context: .
dockerfile: packages/back/.Dockerfile
command: yarn workspace fomoplayer_back start
ports:
- ${API_PORT}:${API_PORT}
environment:
- NODE_ENV=${NODE_ENV}
- API_PORT=${API_PORT}
- FRONTEND_URL=${FRONTEND_URL}
- SESSION_SECRET=${SESSION_SECRET}
- GOOGLE_OIDC_CLIENT_ID=${GOOGLE_OIDC_CLIENT_ID}
- GOOGLE_OIDC_CLIENT_SECRET=${GOOGLE_OIDC_CLIENT_SECRET}
- DATABASE_URL=postgres://multi-store-player-docker:${DB_PASSWORD}@pg:5432/multi-store-player
links:
- pg
depends_on:
- pg
pg:
image: 'postgres:12'
container_name: 'postgres'
ports:
- 5432:${DB_PORT_EXTERNAL}
volumes:
- ./pg/db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: multi-store-player-docker
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: multi-store-player