-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
84 lines (82 loc) · 2.25 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
79
80
81
82
83
version: "3.8"
services:
db:
container_name: db
image: postgres:alpine3.14
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- "${POSTGRES_PORT}:5432"
volumes:
- "./api/sql/dump.sql:/docker-entrypoint-initdb.d/dump.sql"
mobile:
build: ./mobile
volumes:
- apk:/dist
front:
build:
context: ./web-app
dockerfile: Dockerfile
args:
- API_ROUTE=/api
- MOBILE_APK_LOCATION=/client.apk
ports:
- "8081:80"
depends_on:
- "mobile"
volumes:
- apk:/dist
api:
build: ./api
ports:
- "8080:8080"
depends_on:
- "db"
volumes:
- cache:/cache
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_PORT=${POSTGRES_PORT}
- WORKER_API_KEY=${WORKER_API_KEY}
- WORKER_URL=${WORKER_URL}
- BACK_URL=${BACK_URL}
- REDDIT_CLIENT_ID=${REDDIT_CLIENT_ID}
- REDDIT_SECRET=${REDDIT_SECRET}
- GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID}
- GITHUB_SECRET=${GITHUB_SECRET}
- TWITTER_CLIENT_ID=${TWITTER_CLIENT_ID}
- TWITTER_SECRET=${TWITTER_SECRET}
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- GOOGLE_SECRET=${GOOGLE_SECRET}
- SPOTIFY_CLIENT_ID=${SPOTIFY_CLIENT_ID}
- SPOTIFY_SECRET=${SPOTIFY_SECRET}
- ANILIST_CLIENT_ID=${ANILIST_CLIENT_ID}
- ANILIST_SECRET=${ANILIST_SECRET}
worker:
build: ./worker
ports:
- "5000:5000"
depends_on:
- "api"
environment:
- REDDIT_CLIENT_ID=${REDDIT_CLIENT_ID}
- REDDIT_SECRET=${REDDIT_SECRET}
- GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID}
- GITHUB_SECRET=${GITHUB_SECRET}
- TWITTER_CLIENT_ID=${TWITTER_CLIENT_ID}
- TWITTER_SECRET=${TWITTER_SECRET}
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- GOOGLE_SECRET=${GOOGLE_SECRET}
- SPOTIFY_CLIENT_ID=${SPOTIFY_CLIENT_ID}
- SPOTIFY_SECRET=${SPOTIFY_SECRET}
- ANILIST_CLIENT_ID=${ANILIST_CLIENT_ID}
- ANILIST_SECRET=${ANILIST_SECRET}
- WORKER_API_URL=${WORKER_API_URL}
- WORKER_API_KEY=${WORKER_API_KEY}
volumes:
apk:
cache: