-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 921 Bytes
/
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
version: "2"
volumes:
txpfiles:
txpimages:
mysql:
networks:
frontend:
backend:
services:
txp:
container_name: txp-web
restart: always
build: .
# image: garyritchie/docker-textpattern
depends_on:
- db
ports:
- "80:80"
# links:
# - db
networks:
- backend
- frontend
volumes:
- txpfiles:/var/www/html/files
- txpimages:/var/www/html/images
- /etc/localtime:/etc/localtime:ro
# - data:/var/www/html/textpattern/config.php
environment:
- TZ=America/New_York
db:
container_name: txp-db
restart: always
# build: mysql/.
image: mysql:5.6
# ports:
# - "3306:3306"
networks:
- backend
volumes:
- mysql:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
environment:
- MYSQL_ROOT_PASSWORD=txproot
- MYSQL_DATABASE=txp
- TZ=America/New_York