-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
83 lines (83 loc) · 1.55 KB
/
Copy pathcompose.yaml
File metadata and controls
83 lines (83 loc) · 1.55 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
76
77
78
79
80
81
82
83
services:
app:
container_name: app
build: ./app
volumes:
- app:/var/www/default
profiles:
- prod
nginx-dev:
container_name: nginx
build: ./nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./app/data:/var/www/default
working_dir: /var/www/default
profiles:
- dev
restart: unless-stopped
nginx-prod:
container_name: nginx
build: ./nginx
ports:
- "80:80"
- "443:443"
volumes:
- app:/var/www/default
working_dir: /var/www/default
profiles:
- prod
restart: unless-stopped
php-dev:
container_name: php
build:
context: ./php
target: development
expose:
- 9000
volumes:
- ./app/data:/var/www/default
working_dir: /var/www/default
profiles:
- dev
restart: unless-stopped
php-prod:
container_name: php
build:
context: ./php
target: production
expose:
- 9000
volumes:
- app:/var/www/default
working_dir: /var/www/default
profiles:
- prod
restart: unless-stopped
mariadb:
container_name: mariadb
build: ./mariadb
environment:
MARIADB_RANDOM_ROOT_PASSWORD: 12345678
MARIADB_DATABASE: app
MARIADB_USER: app
MARIADB_PASSWORD: 12345678
expose:
- 3306
volumes:
- mariadb:/var/lib/mysql
restart: unless-stopped
redis:
container_name: redis
build: ./redis
expose:
- 6379
volumes:
- redis:/data
restart: unless-stopped
volumes:
mariadb:
redis:
app: