-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (51 loc) · 1.19 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
version: '3.9'
name: "project-name"
services:
backend-app:
build:
context: .
volumes:
- ./app:/code/app
env_file:
- env/.env
environment:
- POSTGRES_URL=postgresql:5432 # Override .env files
ports:
- "8000:80"
postgresql:
image: postgres
env_file:
- env/.env
ports:
- "5432:5432"
volumes:
- ./development/db/postgres/pgdata:/var/lib/postgresql/data
# mysql:
# image: mysql
# environment:
# - MYSQL_ROOT_PASSWORD=mysqlsecret
# volumes:
# - ./db/mysql:/var/lib/mysql
# ports:
# - "3306:3306"
# mongodb:
# image: mongo:4.0
# ports:
# - "27017:27017"
# command: [ "--sslMode", "requireSSL", "--sslPEMKeyFile", "/usr/local/share/ca-certificates/mongodb.pem" ]
# volumes:
# - ./ca-certs:/usr/local/share/ca-certificates
# - ~/apps/mongo4:/data/db
# environment:
# - MONGO_INITDB_ROOT_USERNAME=citizix
# - MONGO_INITDB_ROOT_PASSWORD=S3cret
#
# cache:
# image: redis:alpine
## container_name: cache
# ports:
# - "6379:6379"
# volumes:
# - ./redis.conf:/usr/local/etc/redis/redis.conf
# command: redis-server /usr/local/etc/redis/redis.conf
#