forked from Emerald-Project4-Team8d/Emerald-Project4-Team8d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
42 lines (41 loc) · 910 Bytes
/
docker-compose.test.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
version: '3'
services:
server:
container_name: casmm-server-test
image: strapi/strapi
restart: always
environment:
- DATABASE_HOST=db
ports:
- 1337:1337
volumes:
- ./server:/srv/app
depends_on:
- db
- compile_queue
compile:
container_name: casmm-compile-test
build: ./compile
restart: always
depends_on:
- compile_queue
db:
container_name: casmm-db-test
image: postgres
restart: always
ports:
- 5432:5432
volumes:
- /var/lib/postgresql/data
- ./scripts:/docker-entrypoint-initdb.d
environment:
POSTGRES_DB: strapi
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ENVIRONMENT: test
DATABASE_URL: strapi
SCRIPT_PATH: /docker-entrypoint-initdb.d
compile_queue:
container_name: casmm-compile_queue-test
image: redis
restart: always