-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (54 loc) · 1.16 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
version: '3.7'
# Services
services:
# Tor Service
tor:
container_name: Tor
image: goldy/tor-hidden-service:0.3.5.8
restart: always
links:
- nginx
environment:
# Set mapping ports
SERVICE1_TOR_SERVICE_HOSTS: 80:nginx:80
# Nginx Service
nginx:
image: nginx:latest
container_name: Nginx
ports:
- 86:80
- 469:443
restart: always
volumes:
- ./src:/var/www/php:ro
- ./.docker/nginx/conf.d:/etc/nginx/conf.d:ro
depends_on:
- php
# PHP Service
php:
container_name: PHP
build: ./.docker/php
working_dir: /var/www/php
restart: always
volumes:
- ./src:/var/www/php
depends_on:
- mysql
# MySQL Service
mysql:
container_name: MySQL
image: mysql:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_DATABASE: "${MYSQL_DATABASE}"
volumes:
- ./.docker/mysql/my.cnf:/etc/mysql/conf.d/my.cnf:ro
- .docker/mysql/mysqldata:/var/lib/mysql
#Redis Service
redis:
image: "redis:alpine"
container_name: Redis
restart: always
ports:
- "6379:6379"