-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathdocker-compose.yml
48 lines (44 loc) · 929 Bytes
/
docker-compose.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
version: '3.7'
services:
# App
app:
container_name: invoiceneko
restart: always
build:
context: ./
target: base
dockerfile: Dockerfile
networks:
- app-network
# The Database
database:
container_name: invoiceneko_mysql_database
image: mariadb:10.6.3
restart: always
volumes:
- dbdata:/var/lib/mysql
- ./docker/init:/docker-entrypoint-initdb.d
environment:
MYSQL_DATABASE: invoiceneko
MYSQL_USER: invoiceneko_user
MYSQL_PASSWORD: invoiceneko_password
MYSQL_ROOT_PASSWORD: invoiceneko-root-password
ports:
- 33108:3306
networks:
- app-network
# Redis
redis:
container_name: invoiceneko_redis
image: redis:6.2.4-alpine
restart: always
networks:
- app-network
volumes:
dbdata:
networks:
nginx-proxy:
external: true
name: nginx-proxy
app-network:
driver: bridge