-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (63 loc) · 1.74 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.1'
services:
mysql:
container_name: iwannaeat-mysql
platform: linux/x86_64
image: mysql:5.7
working_dir: /iwannaeat
volumes:
- './app:/iwannaeat'
environment:
- MYSQL_ROOT_PASSWORD=iwannaeat
- MYSQL_DATABASE=iwannaeat
- MYSQL_USER=iwannaeat
- MYSQL_PASSWORD=iwannaeat
ports:
- '40009:3306'
networks:
- iwannaeat-net
mongodb:
container_name: iwannaeat-mongodb
platform: linux/x86_64
image: 'mongo:4.4.14'
environment:
- MONGO_INITDB_DATABASE=iwannaeat
- MONGO_INITDB_ROOT_USERNAME=iwannaeat
- MONGO_INITDB_ROOT_PASSWORD=iwannaeat
ports:
- "40017:27017"
networks:
- iwannaeat-net
webserver:
container_name: iwannaeat-webserver
image: 'nginx:alpine'
working_dir: /iwannaeat
volumes:
- './app:/iwannaeat'
- './docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf'
ports:
- '40007:80'
networks:
iwannaeat-net:
aliases:
- api.iwannaeat.local
php-fpm:
container_name: iwannaeat-php-fpm
build: docker/php-fpm
working_dir: /iwannaeat
volumes:
- './app:/iwannaeat'
- './docker/php-fpm/php-ini-overrides.ini:/etc/php/8.1/fpm/conf.d/99-overrides.ini'
depends_on:
- webserver
- mysql
- mongodb
links:
- webserver
- mysql
- mongodb
networks:
- iwannaeat-net
networks:
iwannaeat-net:
driver: bridge