-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.prod.yml
116 lines (103 loc) · 2.31 KB
/
docker-compose.prod.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: '3.2'
services:
nivel1:
build:
context: ./nivel1
dockerfile: Dockerfile
image: l3ctf/nivel1:dev
ports:
- '80:4444'
deploy:
resources:
limits:
cpus: '0.5'
memory: 256m
reservations:
cpus: '0.2'
memory: 128m
nivel2:
build:
context: ./nivel2
dockerfile: Dockerfile
image: l3ctf/nivel2:dev
ports:
- '22:22222'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
deploy:
resources:
limits:
cpus: '0.5'
memory: 256m
reservations:
cpus: '0.2'
memory: 128m
nivel3:
build:
context: ./nivel3
dockerfile: Dockerfile
image: l3ctf/nivel3:dev
dashboard:
build:
context: ./dashboard/frontend/l3ctf-dashboard
dockerfile: Dockerfile
image: l3ctf/dashboard:dev
ports:
- '1337:80'
mongodb:
image: bitnami/mongodb:4.2.11
ports:
- 27017:27017
environment:
MONGODB_USERNAME: l3ctf
MONGODB_PASSWORD: sup3rdup3rp4ssw0rd
MONGODB_ROOT_PASSWORD: sup3rdup3rp4ssw0rdf0rw00t
MONGODB_DATABASE: l3ctf
MONGODB_PORT_NUMBER: 27017
mongo-express:
image: mongo-express:0.54.0
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: sup3rdup3rp4ssw0rdf0rw00t
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_BASICAUTH_USERNAME: hacked
ME_CONFIG_BASICAUTH_PASSWORD: sup3rdup3r
api:
build:
context: ./dashboard/backend
dockerfile: Dockerfile
image: l3ctf/api:dev
ports:
- '31337:4000'
deploy:
resources:
limits:
cpus: '0.5'
memory: 256M
reservations:
cpus: '0.2'
memory: 128M
depends_on:
- mongodb
environment:
PORT: 4000
DB_NAME: l3ctf
DB_HOST: mongodb
DB_PORT: 27017
DB_USERNAME: l3ctf
DB_PASSWORD: sup3rdup3rp4ssw0rd
migrations:
build:
context: ./dashboard/backend
dockerfile: Dockerfile.migrations
image: l3ctf/api-migrations:dev
depends_on:
- mongodb
environment:
DB_NAME: l3ctf
DB_HOST: mongodb
DB_PORT: 27017
DB_USERNAME: l3ctf
DB_PASSWORD: sup3rdup3rp4ssw0rd