-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (71 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
75 lines (71 loc) · 1.31 KB
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
71
72
73
74
75
version: '3'
services:
develop:
build: .
volumes:
- ./:/www
dns:
- 1.1.1.1
- 1.0.0.1
cap_add:
- ALL
env_file: .env
depends_on:
- postgres
- mysql
ports:
- "80:80"
- "443:443"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
node:
image: node
volumes:
- ./node:/www
cap_add:
- ALL
env_file: .env
depends_on:
- postgres
- mysql
ports:
- "80:80"
- "443:443"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
postgres:
image: postgres
restart: always
volumes:
- "./.docker/postgres:/data/postgres"
- "./.docker/backups:/data/backups"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /data/postgres
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
mysql:
image: mysql
restart: always
volumes:
- "./.docker/mysql:/var/lib/mysql"
environment:
MYSQL_USER: mysql
MYSQL_PASSWORD: mysql
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: mysql
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"