forked from secultce/aurora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (81 loc) · 2.08 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
services:
php:
container_name: aurora-php
build:
context: ./
dockerfile: ./docker/php/Dockerfile
restart: unless-stopped
tty: true
volumes:
- ./:/var/www
- ./docker/php/local.ini:/usr/local/etc/php/conf.d/local.ini
networks:
- aurora_network
nginx:
container_name: aurora-nginx
build:
context: ./docker/nginx
dockerfile: Dockerfile
restart: unless-stopped
tty: true
ports:
- '8080:80'
- '443:443'
volumes:
- ./:/var/www
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
- aurora_network
postgres:
container_name: aurora-postgres
image: postgres:${POSTGRES_VERSION:-16}-alpine
tty: true
volumes:
- aurora_psql_data:/var/lib/postgresql/data:rw
networks:
- aurora_network
ports:
- '5432:5432'
environment:
POSTGRES_DB: ${POSTGRES_DB:-aurora_psql}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
POSTGRES_USER: ${POSTGRES_USER:-aurora}
mongo:
container_name: aurora-mongo
image: mongo:7.0
tty: true
restart: unless-stopped
networks:
- aurora_network
ports:
- '27017:27017'
environment:
MONGO_INITDB_DATABASE: ${MONGO_INITDB_DATABASE:-aurora_nosql}
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME:-root}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD:-password}
MONGODB_DB: ${MONGODB_DB:-aurora_nosql}
MONGODB_USER: ${MONGODB_USER:-aurora}
MONGODB_PASSWORD: ${MONGODB_PASSWORD:-password}
volumes:
- ./docker/mongo/mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh:ro
cypress:
container_name: aurora-cypress
image: cypress/included:13.10.0
environment:
- CYPRESS_BASE_URL=http://nginx
- :80
depends_on:
- nginx
- php
entrypoint: [ '/bin/sh', '-c' ]
command: ['npm install && cypress run']
volumes:
- .:/cy
working_dir: /cy
networks:
- aurora_network
networks:
aurora_network:
driver: bridge
volumes:
aurora_psql_data: