-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (62 loc) · 1.37 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
version: '3.6'
services:
mongodb:
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "3"
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=pass
ports:
- "27017-27019:27017-27019"
volumes:
- /tmp/pippo/:/data/db/
image: mongo:4.2.14
container_name: mongodb-server
hostname: mongodb
networks:
- mailqueue-go-net
mailqueue-go-watcher:
build:
context: ./
dockerfile: watcher.Dockerfile
target: prod
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "3"
image: mailqueue-go-watcher
container_name: mailqueue-go-watcher
hostname: mailqueue-go-watcher
networks:
- mailqueue-go-net
env_file:
- .env
mailqueue-go-api:
build:
context: ./
dockerfile: api.Dockerfile
target: prod
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "3"
image: mailqueue-go-api
container_name: mailqueue-go-api
hostname: mailqueue-go-api
ports:
- 8080:8080
networks:
- mailqueue-go-net
env_file:
- .env
networks:
mailqueue-go-net:
external: false