-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (38 loc) · 820 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (38 loc) · 820 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
42
43
version: '3'
services:
mongo:
image: 'mongo:latest'
container_name: 'mongodb'
restart: always
ports:
- '27017'
environment:
- MONGO_INITDB_ROOT_USERNAME=example
- MONGO_INITDB_ROOT_PASSWORD=hunter2
- MONGO_INITDB_DATABASE=auth-example
volumes:
- "dbdata:/data/db"
- "init:/docker-entrypoint-initdb.d"
networks:
- mongo_network
auth-example:
image: iwismer/auth-example
container_name: 'auth-example'
restart: always
environment:
- DB_USER=example
- DB_PASS=hunter2
- DB_ADDR=localhost
- DB_PORT=27017
- DOMAIN='https://example.com/'
- PRODUCTION=true
networks:
- mongo_network
depends_on:
- mongo
ports:
- '8080'
volumes:
dbdata:
networks:
mongo_network: