-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·88 lines (81 loc) · 1.64 KB
/
docker-compose.yml
File metadata and controls
executable file
·88 lines (81 loc) · 1.64 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
84
85
86
version: '3'
services:
app:
build:
args:
user: sammy
uid: 1000
context: ./
dockerfile: Dockerfile
image: api-melivra1
container_name: api-melivra-app
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
networks:
- melivra
redis:
image: redis:latest
container_name: redis-container
ports:
- "6379:6379"
volumes:
- redis-data:/data
networks:
- melivra
nginx:
image: nginx:alpine
container_name: api-melivra-nginx
restart: unless-stopped
ports:
- 8001:80
volumes:
- ./:/var/www
- ./docker-compose/nginx:/etc/nginx/conf.d/
networks:
- melivra
db:
image: mysql:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: examplepassword
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepassword
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
networks:
- melivra
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
ports:
- "8080:80"
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: examplepassword
networks:
- melivra
# minio:
# image: minio/minio:latest
# container_name: minio
# ports:
# - "9000:9000"
# - "9001:9001"
# volumes:
# - minio-data:/data
# networks:
# - melivra
# environment:
# MINIO_ROOT_USER: "admin"
# MINIO_ROOT_PASSWORD: "admin123"
# command: ["server", "/data", "--console-address", ":9001"]
networks:
melivra:
volumes:
db_data:
redis-data:
# minio-data: