-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
48 lines (48 loc) · 1.04 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
version: "3.8"
services:
api:
build: ./api
command:
- gunicorn
- --bind
- api:5000
- wsgi:app
volumes:
- $PWD/api:/api
ports:
- "5000:5000"
env_file: .env
environment:
- DOMAIN=mail.nicolasarias.co
restart: always
postfix:
build: postfix
command:
- postfix
- start-fg
ports:
- "25:25"
restart: always
env_file: .env
environment:
- POSTFIX_HOSTNAME=tempmail-postfix
redis:
image: redis:alpine
command: redis-server
ports:
- "6379:6379"
volumes:
- $PWD/redis/redis-data:/var/lib/redis
- $PWD/redis/redis-data:/usr/local/etc/redis/redis.conf
restart: always
environment:
- REDIS_REPLICATION_MODE=master
server:
build: ./nginx
command: /bin/bash -c "envsubst < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
ports:
- "80:80"
restart: always
env_file: .env
volumes:
- $PWD/client/build:/usr/share/nginx/html