-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (65 loc) · 1.92 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
version: "3"
volumes:
client_node_modules:
pwa_node_modules:
_build:
deps:
gen:
_build_glance:
deps_glance:
gen_glance:
services:
pwa:
image: node:14.8.0
working_dir: "/opt/app"
# network_mode doesn't work as expected on windows
# network_mode: host
ports:
- 8080:8080
volumes:
- ./pwa:/opt/app
- pwa_node_modules:/opt/app/node_modules
command: bash -c "npm i && npm start"
environment:
SNOWPACK_PUBLIC_API_ORIGIN: http://localhost:8000
SNOWPACK_PUBLIC_GLANCE_ORIGIN: http://localhost:9000
SNOWPACK_PUBLIC_GOOGLE_CLIENT_ID: 296333378796-jeod0t6c4vmd26shsodjnqor389ibfmt.apps.googleusercontent.com
service:
build:
context: ./service
dockerfile: Dockerfile
working_dir: /opt/app
ports:
- 8000:8000
volumes:
- ./service:/opt/app
- _build:/opt/app/_build
- deps:/opt/app/deps
# NOTE Issue Gleam shouldn't delete gen directory.
# - gen:/opt/app/gen
# network_mode: host
command: ./bin/start
environment:
PORT: 8000
ORIGIN: http://localhost:8000
CLIENT_ORIGIN: http://localhost:8080
# DATABASE_URL: postgres://eEj8ar4O:OTnrE1n7D392DnbovK@localhost:6543/plum_mail
DATABASE_URL: postgres://eEj8ar4O:OTnrE1n7D392DnbovK@db:5432/plum_mail
DATABASE_SSL: "FALSE"
POSTMARK_API_TOKEN: POSTMARK_DUMMY_TOKEN
SECRET: DEV_SECRET
# These are test tokens, limited to localhost usage
GOOGLE_CLIENT_ID: 296333378796-jeod0t6c4vmd26shsodjnqor389ibfmt.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET: IIb09tEkEKlmbD0bAtmNfVpD
SENTRY_DSN: https://e3b301fb356a4e61bebf8edb110af5b3@o351506.ingest.sentry.io/5574979
ENVIRONMENT: local
depends_on:
- db
db:
image: "postgres:12.4"
environment:
- POSTGRES_USER=eEj8ar4O
- POSTGRES_PASSWORD=OTnrE1n7D392DnbovK
- POSTGRES_DB=plum_mail
ports:
- 6543:5432