-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
70 lines (64 loc) · 1.39 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
60
61
62
63
64
65
66
67
68
69
70
version: "3"
networks:
default:
external:
name: nginx-proxy
services:
nginx:
image: nginx
ports:
- "9001:80"
volumes:
- ./docker/default.conf:/etc/nginx/conf.d/default.conf
- ./:/var/www
environment:
- DB_HOST=mariadb
- DB_USERNAME=${DB_USERNAME}
- DB_DATABASE=${DB_DATABASE}
- DB_PASSWORD=${DB_PASSWORD}
- VIRTUAL_HOST=www.irabu.co.tz, irabu.co.tz
- LETSENCRYPT_HOST=www.irabu.co.tz, irabu.co.tz
links:
- php
depends_on:
- php
restart: unless-stopped
networks:
- default
node:
tty: true # Enables debugging capabilities when attached to this container.
image: "bitnami/node:12"
# command: sh -c 'npm ci && npm run-script dev-server'
# ports:
# - 3000:3000
volumes:
- .:/var/www
php:
build:
context: .
dockerfile: docker/Dockerfile
volumes:
- ./:/var/www
links:
- db
- redis
depends_on:
- db
db:
image: mariadb
hostname: db
environment:
- "MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}"
- "MYSQL_DATABASE=${DB_DATABASE}"
- "MYSQL_USER=${DB_USERNAME}"
- "MYSQL_PASSWORD=${DB_PASSWORD}"
volumes:
- data-volume:/var/lib/mysql
restart: always
redis:
image: redis
hostname: redis
volumes:
data-volume:
driver: local