-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (52 loc) · 1.35 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
services:
nuxt:
image: make-my-flix-nuxt:latest
build:
context: ./nuxt
dockerfile: Dockerfile
env_file:
- ./nuxt/.env
environment:
- PORT=${NUXT_PORT}
ports:
- "${NUXT_PORT}:${NUXT_PORT}"
strapi:
image: make-my-flix-strapi:latest
build:
context: ./strapi
dockerfile: Dockerfile
env_file:
- ./strapi/.env
environment:
- PORT=${STRAPI_PORT}
- DATABASE_CLIENT=${DATABASE_CLIENT}
- DATABASE_HOST=${DATABASE_HOST}
- DATABASE_NAME=${DATABASE_NAME}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- DATABASE_PORT=${DATABASE_PORT}
- DATABASE_USERNAME=${DATABASE_USERNAME}
- S3_PUBLIC_URL=${S3_PUBLIC_URL}
- S3_BUCKET=${S3_BUCKET}
- S3_ENDPOINT=${S3_ENDPOINT}
- S3_FORCE_PATH=${S3_FORCE_PATH}
- S3_KEY=${S3_KEY}
- S3_REGION=${S3_REGION}
- S3_SECRET=${S3_SECRET}
ports:
- "${STRAPI_PORT}:${STRAPI_PORT}"
restart: unless-stopped
depends_on:
- postgres
postgres:
image: postgres:14
environment:
- POSTGRES_DB=${DATABASE_NAME}
- POSTGRES_USER=${DATABASE_USERNAME}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- PGPORT=${DATABASE_PORT}
ports:
- "${DATABASE_PORT}:${DATABASE_PORT}"
volumes:
- postgres-data:/var/lib/postgresql/data
volumes:
postgres-data: