-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (73 loc) · 2.56 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
66
67
68
69
70
71
72
73
74
75
76
77
78
version: "3.4"
services:
postgres:
image: postgres:13-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- ./data/postgres:/var/lib/postgresql/data
- ./localSetup/projects/postgres/initial-setup.sql:/docker-entrypoint-initdb.d/init-db.sql
ports:
- "5432:5432"
pubsub:
image: bigtruedata/gcloud-pubsub-emulator
command: start --host-port 0.0.0.0:8538
redis:
image: redis:alpine
proxy:
build: ./localSetup/projects/proxy
command: ["nginx", "-g", "daemon off;"]
entrypoint: ["/docker-entrypoint.sh"]
volumes:
- ./localSetup/projects/proxy/proxy.nginx.d:/etc/nginx/conf.d:ro
- ./localSetup/projects/proxy/entrypoint.sh:/docker-entrypoint.sh
- ./data/proxy/ca:/etc/ca
- ./data/proxy/certs:/etc/ssl/private
ports:
- "80:80"
- "443:443"
api:
command: "/bin/sh -c '/start-scripts/wait-for-multiple.sh postgres:5432; yarn; yarn migrate; yarn start:dev'"
build:
context: ./sourcecode/api
dockerfile: Dockerfile
target: dev
env_file:
- ./app.env
environment:
LOG_REQUESTS: "0"
PUBSUB_EMULATOR_HOST: pubsub:8538
REDIS_URL: redis://redis
CONFIG_APP_URL: https://frontend.local.metics.io
volumes:
- ./sourcecode/api/src:/app/src
- ./data/api/node_modules:/app/node_modules
- ./data/api/emails:/app/emails
- ./sourcecode/api/package.json:/app/package.json
- ./sourcecode/api/yarn.lock:/app/yarn.lock
- ./sourcecode/api/.env.defaults:/app/.env.defaults
- ./sourcecode/api/tsconfig.json:/app/tsconfig.json
- ./sourcecode/api/tslint.json:/app/tslint.json
- ./localSetup/helpers/start-scripts:/start-scripts
frontend:
build:
context: ./sourcecode/frontend
dockerfile: Dockerfile
target: dev
env_file:
- ./app.env
environment:
CLIENT_PUBLIC_PATH: https://frontend.local.metics.io/
PUBLIC_PATH: https://frontend.local.metics.io/
volumes:
- ./data/frontend/node_modules:/app/node_modules
- ./sourcecode/frontend/public:/app/public
- ./sourcecode/frontend/src:/app/src
- ./sourcecode/frontend/build-config:/app/build-config
- ./sourcecode/frontend/razzle.config.js:/app/razzle.config.js
- ./sourcecode/frontend/.babelrc:/app/.babelrc
- ./sourcecode/frontend/.eslintrc.json:/app/.eslintrc.json
- ./sourcecode/frontend/package.json:/app/package.json
- ./sourcecode/frontend/yarn.lock:/app/yarn.lock
- ./sourcecode/frontend/tsconfig.json:/app/tsconfig.json