-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (52 loc) · 1.41 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
# PHP
version: '2'
services:
#nginx-proxy:
# image: jwilder/nginx-proxy:alpine
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - /var/run/docker.sock:/tmp/docker.sock:ro
# - ./.docker/images/proxy/certs:/etc/nginx/certs:ro
# - ./.docker/images/proxy/vhost.d:/etc/nginx/vhost.d
# - ./.docker/images/proxy/html:/usr/share/nginx/html
#nginx-letsencrypt:
# image: jrcs/letsencrypt-nginx-proxy-companion
# volumes_from:
# - nginx-proxy
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock:ro
# - ./.docker/images/proxy/certs:/etc/nginx/certs:rw
app-dev:
ports:
- "80:80"
build:
context: .
dockerfile: ./.docker/images/golang/Dockerfile
environment:
MYSQL_HOSTNAME: $MYSQL_HOSTNAME
MYSQL_USERNAME: $MYSQL_USERNAME
MYSQL_PASSWORD: $MYSQL_PASSWORD
MYSQL_PORT: $MYSQL_PORT
VIRTUAL_HOST: $VIRTUAL_HOST
LETSENCRYPT_HOST: $LETSENCRYPT_HOST
LETSENCRYPT_EMAIL: $LETSENCRYPT_EMAIL
APP_PORT: $APP_PORT
depends_on:
- db
# MYSQL
db:
image: mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
MYSQL_HOSTNAME: $MYSQL_HOSTNAME
MYSQL_USERNAME: $MYSQL_USERNAME
MYSQL_PASSWORD: $MYSQL_PASSWORD
volumes:
- ./.docker/data/mysql/:/docker-entrypoint-initdb.d
- data_volume:/var/lib/mysql
volumes:
data_volume: