-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (56 loc) · 1.14 KB
/
docker-compose.yml
File metadata and controls
56 lines (56 loc) · 1.14 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
services:
api:
build: ./api
container_name: api
restart: always
environment:
- NODE_ENV=development
- DB_HOST=db
- DB_USER=root
- DB_PASSWORD=root
- REDIS_URL=redis://redis:6379
volumes:
- ./api:/usr/src/app
ports:
- "4000:4000"
depends_on:
- db
- redis
command: npm run dev
redis:
image: redis:7-alpine
container_name: redis
restart: always
ports:
- "6379:6379"
db:
image: mariadb:11
container_name: db
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=onokodb
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
apache:
image: httpd:2.4
container_name: apache
restart: always
depends_on:
- api
ports:
- "8080:80"
volumes:
- ./apache/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro
mailpit:
image: axllent/mailpit:latest
container_name: mailpit
restart: always
ports:
- "8025:8025" # Interface web
- "1025:1025" # SMTP
volumes:
db_data: