-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdocker-compose.example.yml
57 lines (50 loc) · 1.25 KB
/
docker-compose.example.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
version: '3'
services:
app:
build:
context: ./
dockerfile: Dockerfile
args:
user: decapi
uid: 1000
image: decapi
container_name: decapi-app
restart: unless-stopped
volumes:
- ./:/var/www/html
networks:
- decapi
db:
image: mariadb:10.5
container_name: decapi-db
restart: unless-stopped
networks:
- decapi
volumes:
- ./volumes/db:/var/lib/mysql
environment:
# Values are loaded from `.env`
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
nginx:
image: nginx:1.19-alpine
container_name: decapi-nginx
restart: unless-stopped
networks:
- decapi
ports:
- "8080:80"
volumes:
- ./:/var/www/html
- ./.docker/nginx:/etc/nginx/conf.d
redis:
image: redis:6.0-alpine
container_name: decapi-redis
restart: unless-stopped
networks:
- decapi
networks:
decapi:
driver: bridge