forked from Subterfuge-Revived/Remake-Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 844 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (39 loc) · 844 Bytes
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
version: '3'
services:
server:
profiles: ["test", "production"]
build: .
image: subterfuge_server
depends_on:
- db
volumes:
- ".:/var/www"
ports:
- 5295:5295
environment:
- ASPNETCORE_URLS=http://*:5295
- DOTNET_ENVIRONMENT=Docker
- ASPNETCORE_ENVIRONMENT=Docker
db:
image: "mongo:5.0-rc"
command: --auth
volumes:
- "./mongodb:/data/db"
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=user
- MONGO_INITDB_ROOT_PASSWORD=password
- MONGO_INITDB_DATABASE=subterfugeDb
server_test:
profiles: ["test"]
build:
context: .
target: test
depends_on:
- db
- server
environment:
- ASPNETCORE_ENVIRONMENT=Docker
volumes:
db: { }