-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·60 lines (57 loc) · 1.07 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
php:
build: "./docker/php"
volumes:
- ".:/var/www"
- "./docker/php/init.sh:/init.sh"
links:
- db
ports:
- "80:8080"
- "8080:8080"
environment:
- COMPOSER_MEMORY_LIMIT=-1
#
#web:
# build: "./docker/nginx"
# ports:
# - "80:80"
# - "8000:80"
# volumes:
# - ".:/var/www"
# - "./docker/nginx/main.conf:/etc/nginx/nginx.conf"
# - "./docker/nginx/ext.ini:/etc/php8/conf.d/ext.ini"
# links:
# - php
#postgres:
# image: postgres
# volumes:
# - ".:/var/www"
# ports:
# - "5433:5432"
# environment:
# - POSTGRES_DB=solver
# - POSTGRES_USER=solver
# - POSTGRES_PASSWORD=s3cr3t
#
db:
image: mongo:4.4
environment:
MONGO_INITDB_ROOT_USERNAME: 'root'
MONGO_INITDB_ROOT_PASSWORD: 'rootPassword'
# AUTH: 'no'
MONGO_INITDB_DATABASE: 'flashcards'
ports:
- 27017:27017
expose:
- 27017
#sql:
# image: mysql:5.7
# environment:
# MYSQL_DATABASE: 'flashcards'
# MYSQL_USER: 'user'
# MYSQL_PASSWORD: 'password'
# MYSQL_ROOT_PASSWORD: 'password'
# ports:
# - '3306:3306'
# expose:
# - '3306'