-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
43 lines (42 loc) · 1.02 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
version: "3"
services:
db:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_PASS}
volumes:
- youps-db:/var/lib/mysql
restart: always
web:
build: .
container_name: murmur_web
command: bash -c "lamson start --FORCE & cron; python manage.py runserver 0.0.0.0:8000"
volumes:
- .:/home/ubuntu/production/mailx
ports:
- "8000:8000"
depends_on:
- db
- smtp
environment:
- RELAY_HOST=${RELAY_HOST} # only for local development
- DATABASE_NAME=${DATABASE_NAME}
- MYSQL_PASS=${MYSQL_PASS}
- DOMAIN_NAME=${DOMAIN_NAME}
- DATABASE_HOST=${DATABASE_HOST}
- GMAIL_USER=${GMAIL_USER}
- GMAIL_PASSWORD=${GMAIL_PASSWORD}
- GMAIL_PORT=${GMAIL_PORT}
restart: on-failure
smtp:
image: namshi/smtp
expose:
- 587-8825
environment:
- RELAY_HOST=${RELAY_HOST}
- GMAIL_USER=${GMAIL_USER}
- GMAIL_PASSWORD=${GMAIL_PASSWORD}
- PORT=8825
restart: always
volumes:
youps-db: