This repository has been archived by the owner on Oct 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
85 lines (85 loc) · 1.82 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
84
85
version: "3"
services:
common:
image: pith-api_common:latest
build:
context: .
dockerfile: ./dockerfiles/common.Dockerfile
app:
build:
context: .
dockerfile: ./dockerfiles/app.Dockerfile
depends_on:
- common
- mongo
- redis
ports:
- "8080:8080"
environment:
MONGODB_CONN: ${MONGO}
MONGODB_NAME: ${MONGO_NAME}
REDIS_IP: ${REDIS}
working_dir: /api
volumes:
- ./backend/src:/api:cached
worker:
build:
context: .
dockerfile: ./dockerfiles/worker.Dockerfile
depends_on:
- app
- common
- mongo
- redis
environment:
MONGODB_CONN: ${MONGO}
MONGODB_NAME: ${MONGO_NAME}
REDIS_IP: ${REDIS}
AWS_ACCESS_KEY: ${AWS_WORKER_ACCESS_KEY}
AWS_SECRET: ${AWS_WORKER_SECRET_KEY}
working_dir: /api
volumes:
- ./backend/src:/api:cached
static:
build:
context: .
dockerfile: ./dockerfiles/static.Dockerfile
depends_on:
- app
working_dir: /static
ports:
- "3000:3000"
- "10000:10000"
stdin_open: true
environment:
BACKEND_HOST: ${HOST_NAME}
BACKEND_PORT: ${HOST_PORT}
volumes:
- ./frontend/src:/static/src:cached
- ./frontend/static:/static/static:cached
redis:
image: "redis:alpine"
mongo:
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASS}
tests:
build:
context: .
dockerfile: ./dockerfiles/tests.Dockerfile
depends_on:
- common
- app
- worker
- mongo
- redis
ports:
- "1234:1234"
environment:
MONGODB_CONN: ${MONGO}
MONGODB_NAME: ${MONGO_NAME}
REDIS_IP: ${REDIS}
working_dir: /api
volumes:
- ./backend/src:/api:cached