docker-compose.yml 676 Bytes
Newer Older
1
2
3
4
version: '2'

services:
  skeleton-application:
5
    image: skeleton-application-image
6
7
8
    container_name: skeleton-application-container
    build:
      context: .
9
      args:
10
        PHP_VERSION: 7.3
11
    ports:
12
     - "8080:80"
13
     - "7443:443"
14
    volumes:
15
16
     - .:/var/www/html
    working_dir: /var/www/html
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

  db:
    image: postgres
    restart: always
    environment:
      POSTGRES_USER: admin
      POSTGRES_PASSWORD: admin
      POSTGRES_DB: demo
    ports:
      - 8432:5432
    volumes:
      - ./data/db:/var/lib/postgresql/data
      - ./docker/db/:/docker-entrypoint-initdb.d/

  adminer:
    image: adminer
    restart: always
    ports:
      - 9080:8080