generated from CS3219-AY2324S1/course-assessment-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
70 lines (70 loc) · 1.71 KB
/
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
version: '3'
include:
- judge0-v1.13.0/docker-compose.yml
services:
app:
platform: "linux/amd64"
build:
context: .
dockerfile: Dockerfile
working_dir: /app
ports:
- "${PORT}:${PORT}"
image: t3-app
env_file:
- './.env'
profiles:
- prod
postgres_db:
image: postgres:12.16
container_name: postgresdb-dev
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: "db"
ports:
- "5432:5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
mongo_db:
image: mongo:7.0.0
container_name: mongodb-dev
command: ["--replSet", "rs0", "--bind_ip_all"]
restart: always
# environment:
# MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
# MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
ports:
- "27017:27017"
volumes:
- ./data/mongo:/data/db
- ./.docker/mongo/rs-initiate.js:/docker-entrypoint-initdb.d/rs-initiate.js
# - ./.docker/mongo/replica.key:/data/replica.key
s3-bucket:
build: ./s3/
restart: always
ports:
- 9000:9000
environment:
S3_BUCKET_NAME: ${S3_BUCKET_NAME}
volumes:
- "./data/s3:/home/app/public/peer-prep"
container_name: s3-bucket
rabbitmq:
image: rabbitmq:3.11.23-management-alpine
restart: always
container_name: "rabbitmq-dev"
ports:
- 5672:5672
- 15672:15672
- 15674:15674
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
command: sh -c "rabbitmq-plugins enable rabbitmq_web_stomp && rabbitmq-server"
networks:
- rabbitmq_go_net
networks:
rabbitmq_go_net:
driver: bridge