forked from UFWebApps2-0/code-sparks
-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.yml
42 lines (41 loc) · 913 Bytes
/
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
version: '3'
services:
server:
container_name: casmm-server-dev
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-dev
build: ./compile
restart: always
depends_on:
- compile_queue
db:
container_name: casmm-db-dev
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: development
DATABASE_URL: strapi
SCRIPT_PATH: /docker-entrypoint-initdb.d
compile_queue:
container_name: casmm-compile_queue-dev
image: redis
restart: always