-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
60 lines (55 loc) · 1.18 KB
/
docker-compose.yaml
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
version: "3"
services:
db:
image: "mysql:5.7"
command: --default-authentication-plugin=mysql_native_password
container_name: db
restart: unless-stopped
tty: true
env_file:
- ./.envs/.db
ports:
- 3306:3306
expose:
- "3306"
web:
build:
context: .
dockerfile: Dockerfile
container_name: dev
restart: unless-stopped
volumes:
- ./dev:/opt/django/dev
- static:/opt/django/dev/apps/static
- media:/opt/django/dev/apps/media
expose:
- 80
env_file:
- ./.envs/.django
depends_on:
- db
environment:
SERVICE_NAME: dev
SERVICE_TAGS: web
VIRTUAL_HOST: localhost
VIRTUAL_PORT: 80
# Enable this if you want to have https/ssl support.
# Don't enable this if you use cloudflare
# LETSENCRYPT_HOST: yourdomain.com
# LETSENCRYPT_EMAIL: [email protected]
#Enable this if you want to config your db with easy UI
#adminer:
# image: adminer
# restart: always
# ports:
# - 8080:8080
#'''x
networks:
default:
external:
name: nginx-proxy
volumes:
static:
external: true
media:
external: true