This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.yaml
108 lines (100 loc) · 2.62 KB
/
compose.yaml
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
version: '3'
services:
appserver:
build:
context: '.'
dockerfile: dockerfiles/appserver
target: appserver_dev
networks:
- allhosts
volumes:
- ./appserver:/appserver
working_dir: /appserver
env_file: env-dev
environment:
PORT: 3000
DATABASE_URL: "postgresql://devuser:devdummypass@pgserver:5432/devdb"
# XXX_PORTING add this to boilerplate docs for firebase, vars list etc
GOOGLE_APPLICATION_CREDENTIALS: '/appserver/.firebase-dev-credentials.json'
DISCORD_BOT_GRAPHQL_ACCESS_TOKEN: discord-bot:8675309
EXPORTER_GRAPHQL_ACCESS_TOKEN: exporter:1234567
GCP_EXPORTER_JOB_ID: "projects/moz-fx-future-products-nonprod/locations/us-central1/jobs/h3y-nonprod-exporter-perform-content-export"
command: "yarn dev"
ports:
- "3000:3000"
healthcheck:
test: ["CMD-SHELL", "curl http://appserver:3000/"]
interval: 4s
timeout: 4s
retries: 20
depends_on:
pgserver:
condition: service_healthy
discordbot:
build:
dockerfile: dockerfiles/discordbot
target: discordbot_dev
command: "yarn dev"
networks:
- allhosts
volumes:
- ./integrations/discord:/app
working_dir: /app
env_file: ./integrations/discord/.env
environment:
LOG_LEVEL: debug
DISCORD_BOT_DIDTHIS_API_URL: http://appserver:3000/api/graphql
DISCORD_BOT_GRAPHQL_ACCESS_TOKEN: discord-bot:8675309
depends_on:
appserver:
condition: service_healthy
storybook:
build:
context: '.'
dockerfile: dockerfiles/appserver
target: appserver_dev
networks:
- allhosts
volumes:
- ./appserver:/appserver
working_dir: /appserver
env_file: env-dev
environment:
PORT: 6006
DATABASE_URL: "postgresql://devuser:devdummypass@pgserver:5432/devdb"
GOOGLE_APPLICATION_CREDENTIALS: '/appserver/.firebase-dev-credentials.json'
command: "yarn storybook"
ports:
- "6006:6006"
pgserver:
image: "postgres:14"
networks:
- allhosts
environment:
POSTGRES_USER: devuser
POSTGRES_DB: devdb
POSTGRES_PASSWORD: devdummypass
ports:
- '5432:5432'
volumes:
- dbdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U devuser -d devdb"]
interval: 4s
timeout: 4s
retries: 20
mitmweb:
build:
context: '.'
dockerfile: dockerfiles/mitmweb
ports:
- "8080:8080"
- "8081:8081"
environment:
UPSTREAM: http://appserver:3000/
networks:
- allhosts
networks:
allhosts:
volumes:
dbdata: