-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (56 loc) · 1.64 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
# Docker compose file to support dev+ops activities
version: "3.3"
services:
# Feedback API (from in this repository)
http-server1:
build:
context: .
dockerfile: Dockerfile
args:
user: appuser
group: appgroup
uid: "${_UID:-1000}"
gid: "${_GID:-1000}"
stdin_open: false
tty: false
hostname: http-server1.local
container_name: http-server1.local
ports:
- ${HTTP_PORT:-8001}:${HTTP_PORT:-8001}
environment:
- SMTP_HELO=${SMTP_HELO:-http-server1.local}
- SMTP_SERVER=${SMTP_SERVER:-smtp-server1.local}
- SMTP_PORT=${SMTP_PORT:-1025}
- SMTP_USERNAME=${SMTP_USERNAME:-xxx}
- SMTP_PASSWORD=${SMTP_PASSWORD:-xxx}
- SMTP_FROM=${SMTP_FROM:-no-reply@localhost}
- SMTP_TO=${SMTP_TO:-feedback@localhost}
- SMTP_USE_TLS=${SMTP_USE_TLS:-false}
- SMTP_USE_INSECURE_TLS=${SMTP_USE_INSECURE_TLS:-false}
- HTTP_PORT=${HTTP_PORT:-8001}
depends_on:
- smtp-server1
deploy: # with --compatibility when needed
resources:
limits:
cpus: '1'
memory: 256M
# Simple SMTP server for dev and CI purpose
smtp-server1:
build:
context: docker/smtp-server
dockerfile: Dockerfile
stdin_open: false
tty: false
hostname: smtp-server1.local
container_name: smtp-server1.local
command: python3 -m aiosmtpd --nosetuid --listen 0.0.0.0:${SMTP_PORT:-1025}
ports:
- ${SMTP_PORT:-1025}:${SMTP_PORT:-1025}
environment:
- PYTHONUNBUFFERED=1
deploy: # with --compatibility when needed
resources:
limits:
cpus: '1'
memory: 256M